Observability: Seeing What Your AI Does
Objective
You can't improve what you can't see. Learn to instrument an AI system so you know what it's doing in production — logging, tracing, monitoring quality, and closing the feedback loop.
Watch
Video lesson
LLM Observability Explained: Why Your AI Lies to You — Arize AI
Read
The concept
Traditional software either works or throws an error. AI fails quietly: it returns a fluent, plausible, wrong answer and nothing crashes, nothing alerts, no stack trace appears. That's why observability matters more here than in ordinary systems — without it your feature can degrade for weeks and your first real signal is a customer leaving.
The first layer is per-request tracing, and the rule is to capture the whole chain rather than just the ends. For each request: the user input, what retrieval returned, the prompt actually sent after assembly, the model and version, the parameters, the raw output, any tool calls with their arguments and results, latency broken down by step, tokens in and out, and cost. When something goes wrong you need to see exactly what the model saw, and "the prompt actually sent" is the field teams most often forget to log and most often wish they had.
Version everything that shapes behaviour. Prompts, retrieval configuration, model identifiers, and the eval suite itself should carry versions attached to each trace. Otherwise "quality dropped on Tuesday" is unanswerable, because you can't tell which of the four things that changed on Tuesday did it.
The second layer is aggregate monitoring: latency percentiles, cost per request, error and timeout rates, refusal rates, tool-call failure rates, retrieval hit rates, and quality scores from your evals — tracked over time with alerts on drift. Refusal rate is an underrated signal; a sudden rise usually means either an attack or a prompt change that made the model over-cautious, and both are worth knowing about within hours rather than weeks.
The third layer is the human feedback loop. Capture thumbs up and down, edits users make to generated text, escalations to a human, retries and abandonments. Edits are the richest signal of all — the difference between what you produced and what the user actually wanted is a direct measurement of your gap, and it arrives for free.
Then close the loop, which is the step most teams skip. Feedback that lands in a dashboard nobody acts on is theatre. Route negative signals into a review queue, look at them on a regular cadence, and turn the real failures into permanent cases in your eval suite. That's the mechanism by which a system improves in production rather than ossifying.
Watch specifically for drift, because it's the failure mode this level exists to catch. The world changes, your users change how they phrase things, your data changes, and providers ship model updates — sometimes behind an unchanged name. Run your evals continuously against production samples, not only in CI, so a silent behaviour change surfaces as a number rather than a complaint.
Be deliberate about privacy while you do this. Prompt logs contain whatever users typed, which is frequently personal and occasionally regulated. Decide retention periods, scrub or hash what you don't need, restrict access, and say what you keep in your privacy policy. Full-fidelity logging is enormously useful and is also a liability if you never thought about it.
Observability plus evals is what turns "we think it's working" into "we know it's working, here's the dashboard" — which is the answer a professional gives a boss, an auditor, or an enterprise buyer, and the reason those buyers sign.
Ask
Your AI Tutor
Check
Quick quiz
1.Why does observability matter even more for AI than for traditional software?
2.'Drift' refers to…
3.Which is the per-request layer of observability?
4.The feedback loop in an AI system means…
Practice
Assignment
Your task
Design an observability plan for an AI feature. List exactly what you'd log per request, three aggregate metrics you'd monitor with alert thresholds, and one user-feedback signal you'd capture and how it feeds back into improvement. Then describe how you'd detect drift. Paste the plan.
0 words · saved on this device
Rate your work (0/4)
A strong submission ticks every box. Be honest — this is how you learn.
Remember
Key takeaways
- ◆AI fails silently with plausible wrong answers, so behaviour has to be made visible as data.
- ◆Trace the whole chain per request — especially the prompt actually sent after assembly.
- ◆Version prompts, models and configs, or you can't attribute a change in quality to a cause.
- ◆User edits are the richest feedback signal; route negatives into a queue and into your eval set.
- ◆Run evals continuously against production samples to catch drift, and treat prompt logs as personal data.
Read it, done the quiz, finished the task? Mark it complete.