Skip to content

Read the dashboard before users do

Read described dashboards, traces and logs of a running Claude system to find a regression or drift and its likely cause, and pick the alert that would have caught it early.

Scenario

A telecom's billing-dispute assistant had a quiet fortnight. Then the head of customer care forwarded 60 complaints: answers that "stop halfway" and refunds explained wrongly.

Every one of those failures was on the dashboard from the first day. Nobody was reading it for that.

Explanation

Observability design decides what to collect. Operating it means reading it: noticing that something changed, finding where, and alerting before users do.

What you can read:

  • Traces (OpenTelemetry, from the API and the SDK): one span per request, model run and tool use, with timing, status, token usage (including cache reads and writes), anthropic.message.stop_reason, error.type, and the requested and serving model (gen_ai.request.model, gen_ai.response.model, which differ when an alias or a fallback model served the request). In Metadata only mode, the default, spans hold no prompts or responses. Full content adds them, under your observability platform's own access and retention settings.
  • The Usage and Cost API: organization-wide token use and cost in time buckets, grouped by model, workspace, API key or service tier. Spans are delivered best effort; for complete totals use this API.
  • Quality signals: an online eval on sampled traffic, and user feedback. Slower, but they catch what status codes can't.

Three kinds of trouble:

  • A failure is loud: errors, timeouts, refusals.
  • A regression is a step change that lines up with a change you made: a prompt, a tool, a model, a config value.
  • Drift is gradual: the inputs change (new products, new question types) and quality slides with no deploy to blame.

How to read a dashboard:

  1. Look at rates and ratios, not counts. Traffic rises and falls; the share of max_tokens stops or the cache-read share is what changes.
  2. Line it up with the change log. A step on the same day as a deploy is a regression until proven otherwise.
  3. Segment. Split by step, model, tool or customer group until the change sits in one segment.
  4. Confirm in traces. Open a few affected spans and read what happened.

Alerts fire on leading signals tied to a requirement, compared with a baseline over a time window: "share of responses ending on max_tokens above 1% for 15 minutes", not "monthly bill too high" or "complaints received".

Worked example

The billing-dispute dashboard, week before and week after release 4.2 (whose new drafting prompt asks for every disputed charge to be explained line by line):

Panel Week 1 Week 2
Requests per day 11,800 12,300
p95 latency 6.1 s 9.8 s
Output tokens per draft (median) 520 1,150
Stop reason max_tokens 0.2% 7.4%
Cache reads / input tokens 81% 79%
error.type set 0.3% 0.3%

Reading it:

  • Traffic barely moved, so the other changes aren't load.
  • Errors are flat: the API is answering. This isn't a failure, it's a regression.
  • Output tokens doubled and max_tokens stops jumped from 0.2% to 7.4%, the week of a release that asked for longer drafts. Disputes with many charges now hit the old output limit. Those are the answers that "stop halfway".
  • Caching is unchanged, which rules out a broken prefix.

The alert that would have caught it on day one: share of drafts with stop_reason: max_tokens above 1% over 30 minutes, paged to the team that owns the drafting step.