Span-Level Signals That Expose Silent Agent Failures Traditional Metrics Never Touch
Step-level traces catch the agent failures that uptime and latency miss.

To detect silent failures in AI agents in production, teams need span-level signals checked against the task’s intent. Latency, error rate, and uptime can remain healthy while an agent gives wrong answers, loses context, or repeats useless work. Tool argument validity, handoff context, goal-adherence, and retry anomalies expose those failures, but only alert conditions and regression evals turn that visibility into reliability.
Why request-level metrics cannot see what agents actually do wrong
Request-level monitoring measures whether an operation completed and how fast it ran. It does not establish whether the decision was sound. A retrieval call can succeed but return the wrong customer record, so a response that otherwise succeeds has the wrong account details. A lower latency threshold or a more sensitive error-rate alert would still miss that mistake. The blindspot is architectural.
Single-call LLM monitoring tracks latency and errors, while an agent run includes planner-worker handoffs, tool inputs and outputs, state mutations, and decisions that depend on earlier steps. The full workflow provides the context for judging those decisions. Its steps show where a failure happened. Request aggregates cannot reconstruct that relationship after discarding the distinctions between steps.
The six layers where agents actually break, and why most of them produce no alert
The first failure layer is tool-call and schema drift. A downstream API can rename incident_count to num_incidents, so the agent’s assumptions are wrong even when the call completes. In the logistics routing agent case from March 2026, everything stayed all-green until a human noticed that outcomes had drifted. Successful execution concealed an invalid dependency. This layer needs validation of the fields the next step actually consumes.
The second layer is retrieval quality, where successful access does not establish that the evidence is relevant, fresh, or associated with the right record. Duplicate CRM records and stale documents both fit here. The third layer is planning and decomposition. An agent can solve the wrong subproblem correctly, with the mistake becoming apparent only when a later result is judged in context. Local correctness does not establish workflow correctness.
The fourth layer is memory and long-chain drift, which has the highest mean-time-to-detect of the categories. An agent that loses its original goal can still produce plausible outputs at every step. State can also be lost in handoffs while execution carries on. These failures require the reasoning sequence to be traced from start to finish, because an isolated output may offer no sign that context has disappeared.
The fifth layer is permission boundary violations, which are relatively rare but quick to detect and resolve when instrumented. The sixth is observability failure itself. These incidents surface through support tickets, billing discrepancies, or customer complaints, with an average MTTR of 4.2 hours, the longest of the categories. There is no mean-time-to-detect figure for this category by definition. Across the layers, an error at step 3 can contaminate step 4 and amplify at step 5, leaving no stack trace at step 8 that identifies its origin.

What production silent failures actually look like across domains
A support-triage agent misrouted tickets for nine days while p95 latency stayed at 1.9s, error rate remained 0.0%, and uptime stayed green. A human in the refunds queue discovered the problem after receiving billing questions that did not belong there. The daily token cost had also drifted by a large multiple. The receiving queue was outside what the monitoring could see.
A fintech startup’s fraud detection agent exposed a different gap. As its initial user base grew tenfold over two months, the bill reached three times the original fixed monthly amount. Agentic retry loops, context accumulation, and concurrency-driven token multiplication drove the increase without an alert firing. No single request was anomalous. The missing signal was the pattern of work inside the workflow, particularly repeated attempts and their accumulating context.
Financial services CRM workflows show why output validation must extend beyond response format. After acquisition integrations, duplicate customer records can lead an agent to retrieve the wrong record and respond with incorrect account details. The retrieval succeeds, so no error is raised. Together, these cases require monitoring that distinguishes a completed operation from a valid contribution to the user’s task.
Why span-level signals are the only instrumentation surface that reaches the reasoning layer
A span places an observation at the step where the agent receives context, selects an action, or executes a tool. That position is decisive. Service-level monitoring asks whether the request completed, while a span can record what the agent was given, what it did, and what result it passed onward. Evaluation can then compare that evidence with the step’s goal. Higher-level aggregates lack the step boundaries needed to make that comparison.
OpenTelemetry GenAI semantic conventions define the gen_ai.* namespace and a canonical schema for LLM and agent operations. The conventions remain in Development status in 2026. In the workflow hierarchy, one invoke_workflow span parents multiple invoke_agent children, while an execute_tool span captures the tool name, arguments, and result before the downstream LLM consumes the output. This makes handoffs legible within a single trace. The vendor-neutral wire format allows instrumentation to flow to an OTLP-compatible backend without re-instrumentation.
The schema supports more than a timeline of completed calls. It exposes constructed tool arguments, context received at handoffs, actions compared with stated plans, and retries grouped under one trace ID. It also supports checking whether the downstream LLM response references the tool output. These are observable inputs, actions, and outputs. Their value comes from preserving the evidence that an evaluator needs.
The capture policy sets how much of that evidence is kept. Tracing every request is financially impractical at scale, but tracing only errors excludes successful-looking failures. The operational pattern is full capture on errors and a sampled fraction on successes. Without it, instrumentation reproduces the same status-based blindspot at a finer resolution.
The four span signals that catch failures traditional metrics never reach
The first signal is tool argument validity before execution. Arguments need to be recorded before the call fires, with schema validation at the consuming node. A Pydantic validation failure is preferable to a confident answer built on a silently empty response. The span also needs the result and evidence of its downstream use. Alerts can fire when a success flag is false, when expected fields have null or empty values, or when a downstream LLM response does not refer to the tool output.
The second signal is context state at each handoff. Capturing the full context window at each reasoning step shows what the agent actually received. Outgoing and incoming state make sub-agent state drops detectable. Retrieval timestamps add a separate test for stale evidence. The alert condition is a missing expected state update or a source timestamp outside the configured freshness window.
The third signal is goal-adherence within a step. Where a framework exposes a plan before an action, the span can preserve that plan for comparison with the action taken. Routing offers a concrete test. A billing request sent into technical support can get a polished response even though it took the wrong path. Workflow-wide trace propagation also makes duplicate retrieval or search calls visible across agents. Alert conditions are a goal-adherence score below its configured threshold, an intended-versus-actual routing mismatch, or duplicate tool calls across the workflow.
The fourth signal is retry anomalies at step level. Step-level token and retry budgets expose repetition that a session-level total can obscure. Retry cause is as important as retry count. A transient network error and a tool that keeps failing on the same arguments are different patterns, even if both end with a successful response. The alert condition is a retry count or token consumption exceeding the step’s configured budget, with the recorded cause distinguishing recovery from a silent loop.
How to emit these signals from the frameworks teams already use
LangGraph propagates a callback passed through the configuration of graph.invoke() inside a tracing-decorated function to nodes, model calls, and tool calls. Each step can then record the state it receives and the updates it sends out. Checkpoint state can also become a span attribute for incident replay. LangGraph 1.0 in October 2025 hardened checkpointing, with further improvements in LangGraph 1.2 in May 2026. For deployments on Azure AI Foundry, the Microsoft OpenTelemetry distro emits compliant LangChain and LangGraph spans into the portal’s Observability > Traces view.
OpenAI Agents SDK emits agent_span, generation_span, and function_span natively. Its names are not the OpenTelemetry convention names. Mapping them to invoke_agent, chat, and execute_tool requires a custom TracingProcessor, while OpenTelemetry auto-instrumentation libraries support export to an OTLP collector. MCP instrumentation enriches the existing execute_tool span with the MCP tool name, arguments, and result.
Mastra instruments agent runs, workflow steps, tool calls, and model interactions through @mastra/observability. Compatible destinations include Langfuse, Jaeger, and an existing OpenTelemetry collector. Mastra Platform added observability alerts on November 19, 2026, covering cost, tool failures, model latency, token usage, and eval scores. Vercel AI SDK 7 uses a single extensible integration system with global coverage through one registration. Its traces include root generation, model calls, individual steps, tool executions, embeddings, reranking, usage, and errors.
CrewAI v0.5 added Task Callbacks, a Hierarchical process, task references, and parallel execution. Those features do not establish built-in OpenTelemetry handoff tracing. CrewAI’s tracing sends data to its AMP platform, while Tempo integration requires explicit OpenLIT instrumentation. This distinction applies across framework selection. Native spans provide the observation surface, but teams still need to attach the state, validation results, and eval conditions required by the four signals.
Turning span signals into alerts and evals that close the loop
The operational scorecard starts with trace completeness, because missing workflow steps leave gaps in the evidence. It then measures tool-call success at the payload level, including whether valid output was used. Eval scores against intent assess the contribution of each step, while eval drift tracks degradation over time. Cost per successful task ties the cost of retries to tasks that succeed and goes beyond a count of requests. End-user task-completion rate provides the outcome check that infrastructure health cannot supply.
A span-level eval score below a configured threshold can flag a wrong result even when execution succeeds. A rolling-window drop in tool-call success can identify a recurring integration defect, while a step-level retry budget detects concentrated waste. These alerts operate on semantics and workflow behavior. Status codes remain useful for infrastructure faults, but they do not substitute for these conditions.
Recurring failures should be grouped by failure signature. The same tool argument mismatch across dozens of traces is a pattern requiring shared triage. Grouping reduces triage time from hours to minutes. Once isolated, the production failure should automatically become a regression eval, preserving an actual edge case. After a fix ships, an online eval derived from the original trace tests whether that failure mode recurs on production data.
What teams get wrong when they add spans but not evaluation
High trace completeness is not evidence of high quality. A team can attach gen_ai.* spans to every framework call and continue to miss the same incorrect decisions. The spans show what happened, but evaluation establishes whether it was right. A tool call can complete even when the agent chose the wrong tool.
The corrective is a machine-checkable definition of wrong for each step, scored against that step’s instruction on the data the agent handles in production. Offline test sets cannot anticipate every failure in the actual task distribution. A production alert therefore needs a corresponding eval that can expose the same behavior before users encounter it again.


