← ClaudeAtlas

langfuse-observabilitylisted

LLM observability with Langfuse — tracing, evaluation, prompt versioning, cost tracking, and LLM-as-judge scoring
ArieGoldkin/claude-forge · ★ 6 · AI & Automation · score 74
Install: claude install-skill ArieGoldkin/claude-forge
# Langfuse Observability ## Overview **Langfuse** is the open-source LLM observability platform recommended for tracing, monitoring, evaluation, and prompt management. Unlike LangSmith (deprecated), Langfuse is self-hosted, free, and designed for production LLM applications. --- ## Core Features ### 1. Distributed Tracing Track LLM calls across your application with automatic parent-child span relationships. ```python from langfuse.decorators import observe, langfuse_context @observe() # Automatic tracing async def analyze_content(content: str, agent_type: str): """Analyze content with automatic Langfuse tracing.""" # Nested span for retrieval @observe(name="retrieval") async def retrieve_context(): chunks = await vector_db.search(content) langfuse_context.update_current_observation( metadata={"chunks_retrieved": len(chunks)} ) return chunks # Nested span for generation @observe(name="generation") async def generate_analysis(context): response = await llm.generate( prompt=f"Context: {context}\n\nAnalyze: {content}" ) langfuse_context.update_current_observation( input=content[:500], output=response[:500], model="claude-sonnet-4-20250514", usage={ "input_tokens": response.usage.input_tokens, "output_tokens": response.usage.output_tokens } ) return respons