11.1.8 · Skill in AI engineering

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.

Your status · AI observability

Saved in this browser. Sign in to keep it on every device.It colours this skill's tile on your map.

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

  1. Record a trace for each AI request, with each model and tool call as a step.
  2. Store the model version and prompt version with every trace.
  3. Give users a simple way to flag a bad answer, and link the flag to the trace.
  4. Read real traces every week, group the failures, and turn each group into test cases.
  5. 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.

Timeline

How one routing bug grew before anyone could see it, 2025

  1. 5 AugRouting bug startsProblem0.8% of Sonnet 4 requests
  2. Early AugFirst user reportsHard to tell from normal variation
  3. 25–26 AugTwo more bugs deployedProblem
  4. 29 AugLoad-balancing changeProblemMore requests misrouted
  5. 31 AugWorst hour16% of Sonnet 4 requests
  6. 4 SepRouting fix deployedShipped
  7. 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

Tools

1