AI observability
Tracing and inspecting what models and agents actually did in production.
AI observability records prompts, outputs, tool calls, latency and cost for each request. Traces show why an agent went wrong. Production traces are also the best source of new eval cases.
Why it matters for a product engineer
An AI feature can fail without an error. The request succeeds, the response is fast, and the answer is wrong, off topic, or worse than last week. Normal monitoring does not see this. You need a record of each request: the prompt, the context, the model, the output, the tool calls, the tokens and the time. With that record, a vague complaint becomes a case you can read, reproduce and add to your tests.
How to do it
- Record a trace for each AI request, with each model and tool call as a step.
- Store the model version and prompt version with every trace.
- Give users a simple way to flag a bad answer, and link the flag to the trace.
- Read real traces every week, group the failures, and turn each group into test cases.
- Remove or mask personal data before storage, and limit who can read traces.
Common mistakes
- Logging only errors and latency, so wrong answers are invisible.
- Traces that nobody reads until there is an incident.
- No link between a trace and the deploy or config change that came before it.
- Storing full prompts with personal data that nobody is allowed to see.
Example
In August 2025, three separate infrastructure bugs reduced the quality of some Claude responses. The first started on 5 August and affected about 0.8% of Sonnet 4 requests. A routine load-balancing change on 29 August made it worse: at the worst hour, 16% were affected. Anthropic’s evaluations did not catch the problem, and privacy controls limited what engineers could read. User reports were the signal. Anthropic now runs quality evaluations continuously on production systems.
How one routing bug grew before anyone could see it, 2025
- 5 AugRouting bug startsProblem0.8% of Sonnet 4 requests
- Early AugFirst user reportsHard to tell from normal variation
- 25–26 AugTwo more bugs deployedProblem
- 29 AugLoad-balancing changeProblemMore requests misrouted
- 31 AugWorst hour16% of Sonnet 4 requests
- 4 SepRouting fix deployedShipped
- 17 SepPostmortem publishedResultEvaluations on production
The requests did not fail. Only output quality changed, and only some users saw it, so the signal came from people, not from monitoring.
ReportedAnthropic, A postmortem of three recent issues, September 2025
Sources: A postmortem of three recent issues (Anthropic) ↗ · A field guide to rapidly improving AI products (Hamel Husain) ↗ · An introduction to observability for LLM-based applications (OpenTelemetry) ↗
Technical leverage
Connect model and tool traces to product outcomes, with redaction and retention controls for sensitive inputs.
Evidence of mastery
Put it into practice- Practice
- Instrument an AI workflow and diagnose a failing task from its trace.
- Artifact
- A trace view and a diagnosis linking retrieval, generation or tool errors to the user outcome.
What good looks like
- Latency, cost and task failure can be inspected together.
- Trace access and stored content respect data boundaries.
Use this evidence to assess your work. Your map status is a self-assessment, not a certification.
Resources
2- articleStart here
An introduction to observability for LLM-based applications ↗
OpenTelemetry · 2024 · 11 minWhat to record for model calls (prompts, tokens, latency, cost) using standard tracing.
- articleGo deeper
A field guide to rapidly improving AI products ↗
Hamel Husain · 2025 · 28 minError analysis first: read real traces, find what fails, then measure it.
Tools
1- ToolOpen source