What does observability mean for production LLM agents, and how is it different from app monitoring?
Agent observability adds per-task step counts, tool-call distributions, token cost, trajectory quality, and refusal rate on top of the latency, error rate, and throughput dimensions of traditional app monitoring.
Imagine running a restaurant. App monitoring asks the standard questions: how long did each table wait, how many orders were sent back, how many guests did you serve. For an LLM agent, those questions still matter but they miss most of what can go wrong. Did the waiter take fifteen trips to the kitchen for a single table when two would do? Did the chef ignore half the order and the customer ate it anyway out of politeness? Did the bill come out three times the menu price because the waiter kept asking the chef expensive clarifying questions? Agent observability asks all of those. The dish came out and the table did not complain, but the workflow underneath might still be deeply broken.
Detailed answer & concept explanation~7 min readEverything you need to truly understand this topic: intuition, mechanics, step by step explanation, code, formulas, and worked example. Click to expand.
Everything you need to truly understand this topic: intuition, mechanics, step by step explanation, code, formulas, and worked example. Click to expand.
Everything you need to truly understand this topic: intuition, mechanics, step by step explanation, code, formulas, and worked example.
Everything important, quickly.
Define observability as tracing plus logging plus metrics rooted at the agent task. Contrast the three golden signals of APM with the five agent-specific signals. Explain why one task fans out into many requests and why the unit of observation must move. Close on how aggregate metrics and concrete traces are paired in production tools.
Real products, models, and research that use this idea.
- Langfuse dashboards combine per-task token cost, step count, and LLM-as-judge quality scores into a single agent observability surface.
- LangSmith reports per-chain latency and per-tool error rate alongside model token usage, tied to the LangGraph or LangChain runtime in use.
- Arize Phoenix surfaces trajectory-level quality scores by joining traces with evaluation runs in the same UI.
- Helicone tracks per-user and per-key token and dollar cost on top of every OpenAI or Anthropic call routed through its proxy.
- Weave from W&B ties tracing to experiment runs, so a quality regression on a new agent version shows up next to its trace and its eval scores.
What an interviewer would ask next. Try answering before peeking at the approach.
QYour task latency is fine but per-task cost has doubled over a month. Which agent observability signal would have caught this earliest?
QRefusal rate jumps from 1% to 12% overnight. What kind of root cause does that point to, and what signal do you cross-reference?
Don't say thisRed flags and common mistakes that signal junior thinking. Click to expand.
Red flags and common mistakes that signal junior thinking. Click to expand.
Believing traditional APM is enough because the agent is wrapped in an HTTP endpoint. Latency and error rate hide the failure modes that matter: silent wrong answers, runaway step counts, and quietly-tripled token spend.
The night-before-the-interview bullets. Scan these on the way to the call.
Primary sources. Skim if you want the original framing.
Same topic, related formats. Practice these next.