Why standard monitoring misses most agent failures
A traditional monitoring stack tells you whether a service returned a 200, how long it took, and whether the CPU spiked. Those signals catch infrastructure failures. They say almost nothing about whether an agent did the right thing. An enterprise AI agent can call the wrong tool, skip a tool call entirely and fabricate the result, misinterpret a user query, assemble an answer from retrieved content that does not apply to the question, or take an irreversible action on a downstream system in error. In every one of those cases, the HTTP response is 200, the latency is within normal range, and the error log is empty.
Analysis of data from more than 100 production agent deployments found that quality degradation, cost spikes, and latency increases are the first signals to appear when something goes wrong. Explicit errors are the last signal and the least likely to fire at all. Teams that rely only on error alerts discover agent problems from user complaints, billing statements, or downstream system anomalies. By that point, the failure has typically been running for days, the agent has accumulated a session history that is difficult to untangle, and the root cause requires manually reading through API call logs to reconstruct what happened.
The gap between traditional monitoring and what agentic systems require comes down to the difference between observing infrastructure and observing behavior. Infrastructure monitoring watches whether the pipes are open. For deterministic software, that is close enough, because the same input reliably produces the same output and a failure in the pipes is usually the only failure that matters. For a probabilistic agent that assembles its own context and makes a decision at each step, the pipes can be fully open while the agent is quietly doing the wrong thing. Teams that have not instrumented for behavioral failures are running agents they cannot debug when those failures occur.
“The tool ran, the request completed, and the infrastructure looked healthy. The agent made the wrong decision, and none of your alerts fired.”
The 5 instrumentation decisions that make agent failures visible before users find them
Observability for agentic workflows requires five deliberate instrumentation decisions, each addressing a different layer of agent behavior. Skipping any one of them leaves a category of failure that only surfaces through user reports or downstream damage. The table below maps each decision to what most teams currently instrument, what production-grade agent observability requires, and the class of failure that goes undetected without it.
| Decision | What most teams instrument | What production requires | Exposure |
|---|---|---|---|
| 1. Step-level span tracing | End-to-end request duration and HTTP status code for the agent API | A named span for every agent step: query understanding, tool selection, each tool call, result evaluation, and response generation, with parent-child relationships preserved | Critical |
| 2. Tool call input and output capture | Whether the tool call returned success or failure | The exact input sent to each tool and the exact output returned, stored in the trace alongside the agent's reasoning step that preceded the call | Critical |
| 3. Quality scoring on agent outputs | No quality measurement; reliance on user feedback or error rates as proxies | An automated quality score on each agent response using a lightweight LLM-as-a-judge or retrieval-grounding check, recorded as a metric alongside latency and cost | High |
| 4. Per-session cost tracking | Aggregate token usage across all requests, reviewed in monthly billing | Token count and estimated cost recorded per session at completion, with an alert threshold set at 2 to 3 times the median session cost to catch runaway agent loops | High |
| 5. Failure replay capture | Application logs that partially reconstruct the session on request | Full session traces stored in a format that can be replayed in a test environment, turning every interesting production failure into a reproducible test case | High |
Not sure where your agent observability gaps are?
10decoders runs a structured instrumentation review that maps your current agent tracing against the five decisions above and identifies the specific failure class your monitoring cannot currently catch.
Book a Free AI Assessment →Why tool call capture is the decision teams skip most often
When asked what they monitor in their agent deployments, most engineering teams describe monitoring the agent at the boundary: request in, response out, latency recorded, errors logged. Tool calls are treated as internal implementation details. The agent called a search API and got results. What it sent and what came back are not captured. That gap is where the most damaging failure mode lives.
Agents that fabricate tool results instead of calling the tool produce responses that look well-sourced and confidently formatted. Without the tool call trace, the only way to detect fabrication is to independently verify the agent's output against the data source it claims to have queried. That verification does not happen automatically, and it does not happen from user complaints alone, because fabricated results often sound plausible enough to pass a quick read. An analysis of enterprise agent deployments found that agents skipping tool calls and generating plausible-looking results was one of the most common silent failure patterns, and that it was consistently caught only by teams that captured tool call inputs and outputs in full.
Closing this gap requires a structural change, not a configuration tweak. At the point of tool execution, capture the input payload sent to the tool and the response returned, both verbatim and before any parsing or truncation, and attach them to the session trace alongside the agent's reasoning step that preceded the call. When an agent fabricates a result rather than calling the tool, the trace shows a reasoning step that references a tool and a session that contains no matching tool call span. That pattern can fire an alert automatically. Without the trace, a fabricated response looks identical to a correctly sourced one.
End-to-end monitoring only
The agent API emits a 200 on success and a 5xx on hard failure, with latency and error rate tracked at the request level. When an agent chooses the wrong tool, fabricates a result, or takes a wrong action, it still returns a 200. Post-incident debugging means reading raw LLM API logs to reconstruct what happened.
Error logging added to the agent loop
Explicit exceptions are caught and logged, and tool call failures appear in the error log. Silent behavioral failures still produce no signal. Quality degradation, cost creep, and fabricated results remain invisible until a user escalates or the monthly bill lands.
Step-level spans, quality scoring, cost tracking
Every agent step produces a named span, with tool call inputs and outputs captured verbatim alongside the reasoning step that preceded each call. A quality score runs on each response, and per-session cost fires an alert when it exceeds 2.5 times the median. Silent failures surface as quality metric anomalies before the first user complaint arrives.
Pre-deployment checklist: 7 things your agent instrumentation must cover
“Quality degradation and cost spikes are the early warning signals. Errors are the last thing to fire, and often they never fire at all.”
What to do this week
Map every step your agent takes and assign it a name
Before adding any tooling, write down the steps your agent executes from input to output. For each step, give it a name that describes what it does: “query_decomposition,” “tool_selection,” “search_api_call,” “result_evaluation,” “response_generation.” These names become your span names. If you cannot name a step, you do not understand it well enough to instrument it, and that is itself a signal worth attending to. Run through five recent agent sessions and trace where the time went, where decisions were made, and where a wrong decision would be hardest to catch.
Add tool call capture to your highest-risk tool first
Identify the tool in your agent that, if it produced a wrong output or was skipped, would cause the most damage. For many enterprise agents that is a database write, a customer-facing communication, or a financial calculation. Instrument that tool first: capture the input payload and the response verbatim, attach both to the session trace, and add a check that verifies the tool was called whenever the agent's reasoning step references it. That single instrumentation change covers the highest-impact silent failure path before you have built full tracing coverage.
Set a per-session cost alert before your next deployment
Query your LLM provider's API to get the token count for your last 100 agent sessions. Compute the median and the 95th percentile. Set an alert at 2.5 times the median. That threshold will not fire on normal variation but will catch agent loops, context accumulation bugs, and prompt injection attacks that drive sessions into runaway token consumption. If your provider does not expose per-session token counts via API, add a counter to your agent loop that accumulates tokens per session and writes the total to your observability platform at session close.
Turn your last three production incidents into test cases
Go back to the last three times your agent produced a wrong answer, took a wrong action, or confused a user. For each one, reconstruct the session inputs: the user query, the conversation history at that point, the retrieved context if applicable, and the tool call outputs that were available. Write those inputs as a test case that asserts the correct behavior. Run those three test cases before every future deployment. Building a regression suite from real failures is faster than writing hypothetical tests and more likely to catch the specific failure modes your agent is prone to.
Let 10decoders instrument your agent pipeline
We review your agent's current tracing against the five decisions above, identify which failure classes your monitoring cannot currently detect, and design the instrumentation changes needed to make your agents debuggable before the next incident.
