Why this matters now:Dynatrace's Pulse of Agentic AI 2026 survey of 919 senior technology leaders found that 51% name managing and monitoring agents at scale as their primary barrier to production deployment. New Relic's 2026 Observability Forecast, which surveyed 2,575 engineering leaders, found roughly one in four teams running AI agents with no monitoring in place at all. These are teams that have already shipped agents to end users, with no way to explain what an agent did, why it did it, or when it started doing it wrong.

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.”
51%
of senior technology leaders name monitoring and managing agents at scale as their primary barrier to production deployment, in a survey of 919 executives. Dynatrace Pulse of Agentic AI, 2026
1 in 4
enterprise teams running AI agents in production have no monitoring in place, based on a survey of 2,575 engineering and IT leaders. New Relic Observability Forecast, 2026
21%
of organizations have a mature governance model covering agentic AI behavior, decision tracing, and accountability for autonomous agent actions. Deloitte, 2026

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.

DecisionWhat most teams instrumentWhat production requiresExposure
1. Step-level span tracingEnd-to-end request duration and HTTP status code for the agent APIA named span for every agent step: query understanding, tool selection, each tool call, result evaluation, and response generation, with parent-child relationships preservedCritical
2. Tool call input and output captureWhether the tool call returned success or failureThe exact input sent to each tool and the exact output returned, stored in the trace alongside the agent's reasoning step that preceded the callCritical
3. Quality scoring on agent outputsNo quality measurement; reliance on user feedback or error rates as proxiesAn 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 costHigh
4. Per-session cost trackingAggregate token usage across all requests, reviewed in monthly billingToken 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 loopsHigh
5. Failure replay captureApplication logs that partially reconstruct the session on requestFull session traces stored in a format that can be replayed in a test environment, turning every interesting production failure into a reproducible test caseHigh

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.

Stage 1
The common starting point

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.

Stage 2
Partial instrumentation

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.

Stage 3
Full behavioral observability

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

Agent observability readiness checklist
Every agent step produces a named spanQuery understanding, tool selection, each individual tool call, result evaluation, and response generation each have their own span with start time, duration, and status. The span tree preserves parent-child relationships across the full session.
Tool call inputs and outputs are stored verbatim in the traceThe exact payload sent to each tool and the exact response returned are captured at execution time, before any parsing. A reasoning step that references a tool but produces no matching tool call span in the trace triggers a fabrication alert.
An automated quality score runs on every agent responseA lightweight LLM-as-a-judge or retrieval-grounding check evaluates each response and records a score as a metric alongside latency and token count. The team has a defined alert threshold for quality score drops, separate from error rate.
Per-session cost is tracked at completionToken count and estimated cost are recorded when each session closes. An alert fires when a single session exceeds 2 to 3 times the median session cost, catching runaway agent loops before they appear on the monthly bill.
Interesting failures are captured in a replay-ready formatSessions that trigger a quality alert, cost alert, or manual flag are stored in a format that can be replayed in a test environment with the same inputs. The team has a defined process for turning production failures into regression test cases.
Tracing is in place before the first production deploymentInstrumentation is added during development, not retrofitted after the first incident. The trace schema covers all tools the agent can call, including tools added in future versions, so new tool integrations do not create unmonitored execution paths.
Alert thresholds cover quality and cost, not just errorsThe alerting configuration includes at least one quality-based threshold and one cost-based threshold, in addition to error rate. Quality degradation and cost anomalies fire before the error rate changes, giving the team an earlier warning window.
“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.

#AgenticAI#AIObservability#LLMTracing#EnterpriseAI#AIAgents#LLMOps#AIProduction#AgentDebugging#HealthcareAI#10decoders