CONTENTS
Observability and the data flywheel
Evals tell you how the system behaves on the cases you thought to test. Observability tells you how it behaves on everything else, which is to say, in production. In AI systems the two are tightly linked: production traces are the raw material for error analysis, and error analysis produces the next round of evals.
Why logs aren't enough
In a normal web service, a request log with status code, latency and an error message usually tells you what went wrong. In an AI system, the failing request returned 200 OK in 2.3 seconds with a confident, well-formed, wrong answer. To understand it you need everything the model saw and did:
- the exact prompt sent, after templating;
- the retrieved chunks and their scores;
- every tool call, its arguments, result and duration;
- the model and version, temperature and other settings;
- token counts and cost per call;
- the final output and any guardrail decisions;
- user feedback, if any arrived later.
That's a trace: a tree of spans, one per step, linked by a shared trace ID. Chip Huyen's platform post lists observability (metrics, logs and traces) as something to build in from the start, not bolt on.
trace 7f3a "where is my order?" 2.31 s $0.021
├─ span input_guardrail 0.04 s pass
├─ span query_rewrite model=small 0.21 s "order status for latest order"
├─ span agent_step 1 model=large 0.62 s → orders_search(customer_id=…)
│ └─ span tool orders_search 0.08 s 3 results
├─ span agent_step 2 model=large 1.29 s → final answer (182 tokens)
└─ span output_guardrail 0.07 s pass
Standards and tools
OpenTelemetry, the standard for traces and metrics in ordinary services, has GenAI semantic conventions: agreed attribute names for model calls, token usage, tool calls and agent spans. As of late 2026 they're still marked as in development, so expect names to change, but building on them keeps your traces portable between backends.
There's a healthy ecosystem of LLM-specific observability and eval tools. Langfuse (open source, built on OpenTelemetry) and Arize Phoenix (source-available, self-hostable) can run on your own infrastructure; LangSmith and Braintrust are hosted products with tracing and evaluation together. Pick one that lets you search traces, attach labels and turn traces into eval datasets. Those three abilities matter more than dashboards.
What to put on the dashboard
Track operational and quality metrics side by side:
| Operational | Quality | Business |
|---|---|---|
| TTFT and total latency (p50/p95/p99) | Code check pass rates | Task completion / resolution rate |
| Tokens and cost per request, per user, per feature | LLM judge pass rates on sampled traffic | Escalation to humans |
| Cache hit rate | Guardrail trigger rates | Retention, conversion |
| Error, retry and fallback rates | Retrieval "no result" rate | Explicit feedback (thumbs) |
| Tool call failure rates | Refusal rate | Edits to AI output |
Alert on sudden changes. A guardrail trigger rate that triples overnight is either an attack or a regression, and you want to know which.
Privacy
Traces contain user data, often sensitive. Decide up front: what's retained and for how long, who can read traces, which fields are redacted (credentials, payment details, health data), and how a user's deletion request reaches your trace store. Treat the trace store as production data, because it is.
Feedback and the data flywheel
Eugene Yan's "Patterns for Building LLM-based Systems & Products" (2023) names seven patterns. Two of them are about the user, and they're the ones teams most often skip: defensive UX and collecting user feedback.
Defensive UX means designing the interface for a component that's sometimes wrong:
- Set expectations: show that the output is AI-generated and may contain mistakes.
- Show sources so users can verify.
- Make outputs easy to edit, retry or dismiss.
- For actions, show what will happen and ask before doing it.
- Prefer suggestions the user accepts over changes the system makes alone.
Feedback comes in two kinds. Explicit feedback (thumbs up or down, ratings, reports) is clear but rare; most users never click. Implicit feedback is abundant: did they copy the answer, accept the suggestion, edit it heavily, ask the same question again, ask for a human? A code completion that's accepted and kept is a strong positive signal; one that's deleted a moment later is a negative one.
Together they create the data flywheel:
ship ──► users interact ──► traces + feedback ──► error analysis
▲ │
└──── better prompts, retrieval, tools, evals ◄───────┘
Each turn makes the product better and generates more data to improve it. The teams that turn this wheel fastest win, which is a strong argument for shipping a constrained version early instead of perfecting a demo in private.
Key takeaways
- AI failures return 200 OK. You need full traces: prompts, context, tool calls, settings, tokens, outputs.
- Build on OpenTelemetry's GenAI conventions where possible; choose tools that make traces searchable, labelable and convertible to evals.
- Dashboard operational, quality and business metrics together, and alert on sudden changes.
- Treat traces as sensitive production data.
- Design defensive UX, collect explicit and implicit feedback, and turn the data flywheel.
Exercises
- Design the span tree for a RAG chatbot request, listing the attributes each span records.
- List five implicit feedback signals for an AI writing assistant inside a document editor. Which is most trustworthy?
- Write a retention and redaction policy for traces of a healthcare scheduling assistant.