LLM Observability (Langfuse / LangSmith)
Trace, debug, evaluate and cost-track LLM apps with Langfuse and LangSmith: spans, generations, feedback, datasets, prompts and production practice.
Learn LLM Observability (Langfuse / LangSmith) free, in English or Hindi, with lessons, shorts and interview questions.
Start course → · Interview questions
31 lessons · 10 modules · Free
What you'll learn
- Explain why LLM applications need tracing beyond classic logs, metrics and APM.
- Model requests as traces, spans, generations and sessions with useful tags and metadata.
- Instrument Python apps, RAG pipelines and agents with Langfuse, LangSmith and OpenTelemetry.
- Track token usage, cost, latency percentiles and time to first token, and build useful dashboards.
- Evaluate quality with user feedback, LLM judges, datasets and experiments, and roll out prompt versions safely.
- Run observability in production with masking, retention, sampling and correct context propagation.
Syllabus
Why LLM Observability Matters
- Why LLM Apps Need Their Own Observability
- How It Differs from Traditional APM
- What to Capture: The Core Signals
The Core Data Model
- Traces, Spans and Observations
- Generations: Recording Model Calls
- Sessions, Users, Tags and Metadata
Langfuse Fundamentals
- Langfuse: Cloud or Self-Hosted Setup
- Langfuse: The @observe Decorator
- Langfuse: Manual Spans, Scores and Flushing
LangSmith Fundamentals
- LangSmith: Projects and Setup
- LangSmith: @traceable and Client Wrappers
- Automatic Tracing for LangChain and LangGraph
Instrumenting Real Applications
- Tracing a RAG Pipeline
- Tracing Agents and Tool Calls
- OpenTelemetry and GenAI Semantic Conventions
Cost, Latency and Analytics
- Tracking Token Usage and Cost
- Latency, Streaming and Time to First Token
- Dashboards, Filters and Alerts
Evaluation and Feedback
- User Feedback and Scores
- LLM-as-a-Judge Evaluators
- Datasets, Experiments and Regression Tests
- Online vs Offline Evaluation
Prompt Management and Experiments
- Prompt Management and Versioning
- Comparing Prompt and Model Versions
Production: Privacy, Performance and Pitfalls
- Privacy, Masking and Data Retention
- Performance Overhead and Sampling
- Common Pitfalls in Production
- Choosing Between Langfuse, LangSmith and Others
Revision and Interview Prep
- Cheat Sheet: LLM Observability in One Page
- Common Interview Questions
- Mixed Self-Check