LLM observability
Definition
Collecting traces, costs, latency and quality signals from AI applications in production so you can debug and improve them.
In more detail
Observability tools such as Langfuse, Phoenix, LangSmith and Braintrust store traces, attach feedback and scores, and let you search for failures. Decide early what personal data to redact.
Start by tracing every request with the model, prompt version, tokens, cost and latency, then add user feedback and a few automated scores. Use the traces for error analysis, to build eval sets from real failures and to run online evaluations on a sample of traffic. OpenTelemetry-based instrumentation keeps you portable between backends, and a gateway can add cost tracking without code changes.
Related terms
Eval
A repeatable test that measures how well an AI system performs on a defined set of cases, so you can compare versions instead of guessing.
Online evaluation
Scoring a sample of real production traffic continuously, with automated checks or judges, to catch problems that offline test sets miss.
Trace
A record of every step in one AI request or agent run: prompts, model responses, tool calls, retrieved context, tokens, timing and cost.
AI gateway
A proxy between apps and model providers that gives one API for many models and adds keys, logging, budgets, caching and fallbacks.
Read more about LLM observability
- LLM observability
Tracing requests, tokens, latency and cost in AI applications running in production.
- Add tracing and cost tracking to an LLM app
One trace per user action, with tokens, latency and cost for each model call, so slow and costly features stand out.
- Online evaluation
Scoring a sample of real production traffic continuously, with automated checks or judges, to catch problems that offline test sets miss.
- Opik
Open-source platform from Comet for tracing, evaluating and monitoring LLM apps.