APM Closes the Case the Moment the Request Returns 200
Agents can fail in six ways that still return a clean 200.

Traditional error monitoring fails for AI agents because HTTP success measures only request completion. A wrong answer, a hallucinated tool call, and a corrupted multi-step workflow can all return 200. Detecting those failures requires an observability layer that records agent execution and evaluates its meaning, rather than treating a clean response as proof of correctness.
Why does an agent look fine in logs but still give bad outputs?
The dashboard is green, with a flat error rate, healthy latency, and uptime all-clear, while the agent quietly makes the wrong decision. Nothing in those signals contradicts the failure. An HTTP 200 establishes that a request completed successfully at the protocol level, but it does not establish that the agent selected the right tool, retained a constraint, or fulfilled the user’s objective.
Traditional APM follows HTTP paths and detects failures such as 5xx responses across request flows. Those signals remain useful, but a correct agent run and an incorrect one can look identical through that lens. Fluent output makes the discrepancy harder to recognize because a completed response can appear credible without being correct.
The gap begins inside the execution flow. Agents reason, act, and report without a mandatory evaluation point between deciding to do something and doing it. A poor response from a single LLM call may be clear at once, but an agent can finish a whole workflow before the effects of its mistake become visible in downstream work. By then, the same failure may already have repeated.
What nine days of silent mis-routing looks like from the inside
A documented support-triage case from May 2026 shows the consequence. The agent mis-routed roughly one ticket in fourteen for nine days while p95 latency, error rate, and uptime remained green. A human in the refunds queue noticed that the queue was receiving the wrong type of tickets. The detection signal came from the work itself.
During that period, the agent never crashed, threw an exception, or returned an error status. It gave fluent, confident wrong answers while the monitoring stack showed no failure. Token cost also drifted substantially upward without detection because no alert was keyed to output-level correctness or the downstream signal that something had changed. The instruments were measuring execution health.
The six failure modes that produce a 200 and a wrong answer

What happens inside an agent when execution succeeds but the task fails? Often, the defect lies between steps. An output becomes an input, a constraint must survive another turn, or one agent hands a decision to another. Single-turn evaluation misses how these steps depend on each other when it checks each response on its own.
Tool misuse is the first failure mode. The agent selects the wrong tool, supplies incorrect arguments, or continues after a tool error as though the call succeeded. A malformed argument at step 2 can corrupt every later step that depends on the result. The request can still complete because successful execution of a call does not establish that the call was appropriate.
Context loss across turns creates a different discrepancy. The agent forgets a fact or constraint established earlier, producing a response that looks reasonable on its own but is wrong in context. Goal drift instead accumulates through small deviations from the original objective. Neither requires an individual step to fail, so a monitor needs the earlier context or original intent to recognize the error.
Retry loops turn continued execution into a cost problem. A misconfigured agent repeatedly invokes tools, multiplying token consumption without necessarily triggering an error-rate alert. Cascading errors spread through multi-agent handoffs when one agent builds on a mistake that another has already made. Monitoring each agent separately can miss the dependency that explains the eventual wrong answer.
Silent quality degradation is the sixth failure mode. Output quality declines without producing a signal that crosses the configured thresholds. Priyanka Bajaj’s 2026 paper, Evaluation Blindness: How Silent Measurement Failures Corrupt AI Systems from Training to Deployment, names evaluation blindness as the condition in which a failing system produces measurements indistinguishable from a non-failing state, with no auxiliary signal exposing the discrepancy.
Three production incidents that show what these failures cost
The evidence backs fewer incidents than the three domains in this section call for. The support-triage case establishes an operational consequence in customer support, with incorrect routing remaining undetected until a person recognized the mismatch. It does not establish a policy violation, and it should not be presented as evidence of one.
The finance example lacks the details needed for a production account. An assertion of unauthorized financial action, without an identified event or supporting record, cannot establish what an agent did or why monitoring missed it.
The supply-chain account also has a sourcing gap. It describes a March 2026 routing failure after a downstream API field changed from incident_count to num_incidents, but the supplied material explicitly marks that account as unverified. It cannot serve as a documented incident, although the general mechanism of tool-schema mismatch fits the tool-misuse category.
The supported case demonstrates that wrong decisions can persist behind healthy service metrics. It does not justify presenting three independently documented incidents or assigning consequences that the available record does not establish.
Why the gap between agent behavior and HTTP telemetry is structural, not a configuration problem
Additional thresholds cannot recover information the telemetry never captured. HTTP spans do not, by themselves, expose prompts and completions at the model boundary, storage and retrieval operations within a step, or framework-level orchestration decisions. Each layer adds context needed to tell whether the agent got the task right when it finished. Without that context, more dashboards just show the same limited evidence in different ways.
Shared state makes the limitation more pronounced. In a multi-turn workflow, correctness depends on what the agent retained from earlier steps, while non-deterministic tool sequences make a fixed request path an incomplete model of execution. Routing can live inside LLM reasoning. A trace ID may connect two agents without explaining why the orchestrator selected that handoff.
Bajaj’s paper distinguishes this measurement problem from ordinary error detection. Its operational failure class is 100% silent by structural definition, meaning that the standard measurement does not distinguish failure from success. Accuracy can stay nearly flat from one evaluation window to the next even as output diversity collapses.
Error-triggered tracing compounds the blind spot. If most agent failures have no error code, collecting detailed traces only after an error excludes much of the execution that needs examination. The limitation applies specifically to an HTTP-only view in an APM backend. What is needed is an observability layer that treats reasoning steps, tool invocations, and inter-agent handoffs as first-class telemetry.
What agentic observability actually instruments that APM cannot
Agentic observability extends distributed tracing to represent the agent’s execution structure. Spans describe HTTP calls, reasoning steps, tool invocations, and handoffs. The purpose is causal reconstruction. An engineer needs to connect the final output to the earlier retrieval, tool result, or orchestration decision on which it depended.
The model boundary records prompts and completions. The storage and retrieval layer records vector database calls, document fetches, and external data lookups during a step. The framework layer records control flow, message passing, and the decisions the orchestrator makes across the agent graph.
Those records also provide inputs for evaluation. Trace completeness indicates whether the execution is sufficiently represented, tool-call success rate describes tool execution, and eval drift tracks changes in evaluated behavior. These signals answer different questions. A successful tool call does not prove correct tool selection, just as a complete trace does not prove that the resulting answer met the user’s objective.
Tool boundaries need coherent representation as well. MCP instrumentation enriches the execute_tool span rather than creating a duplicate, preserving a connected trace through MCP server calls. A practical limitation remains in the experimental status of the OTel GenAI conventions. Without a unifying collector, an infrastructure backend may not correlate those spans with the application’s other logs, metrics, and traces.
Instrumenting the frameworks teams are actually shipping: LangChain, LangGraph, OpenAI Agents SDK, Vercel AI SDK, and Mastra
Framework choice shapes the available instrumentation path. The architecture remains the same, but the route to recording state, tool activity, and control flow differs across the stack. Built-in tracing and developer-supplied tracing also leave different integration responsibilities. The relevant distinction is what execution context becomes visible.
LangChain pairs natively with LangGraph for stateful, cyclic multi-agent orchestration and with LangSmith for tracing, evaluation, and systematic production debugging. LangSmith also provides an MCP Server for querying traces. For agents built with LangChain and LangGraph, MCP tools appear as generic tool-call spans in the execution graph. That representation exposes the tool activity without implying a separate, richer MCP-specific record.
No integration mechanism can be established here. That evidence gap should not be confused with an absence of observability support.
The Vercel AI SDK leaves observability to the developer, typically through AI Gateway or a third-party tracer. Instrumentation is therefore a separate integration concern. The framework’s presence alone does not establish that the production system records the context needed for diagnosis.
Mastra’s documentation describes an open-source TypeScript framework providing agents, workflows, memory, workspaces, and observability. It reached version 1.0 in January 2026 with built-in observability, evals, and deployment support for Vercel and Cloudflare Workers. Mastra Studio automatically traces every LLM call, tool invocation, and workflow step. The view shows total request latency, a breakdown of token usage, the sequence of tool calls, and memory retrieval operations.
How failures that survive instrumentation get surfaced, grouped, and routed to a fix
Production volume makes individual trace review impractical. Evaluation must find semantic failures, and clustering must group repeated failures into issues an engineer can look into. Otherwise, richer telemetry merely creates a larger body of unexamined records.
The diagnostic loop connects trace collection, failure clustering, root cause analysis, and eval generation from production failures. Clustering reduces hundreds of individual events to a prioritized set of patterns. The resulting issue needs enough execution context to connect an incorrect outcome with its cause.
Alerting also needs to distinguish patterns from noise. A single score drop can trigger an alert without proving that a defect keeps happening, but the pattern described in the material waits for three failures in a row in the same category. The issue then reaches the responsible team through the channels where it already works.
Prompt regression is a distinct test of this loop. An agent that works on the inputs a team remembers to test manually has not established comparable behavior across prompt versions. Without evals, a change can quietly break behavior that worked before. Production failures give the team real cases for that comparison, so the test set can draw on more than what the team remembers.
The final step is verification after the fix. Once production failures are confirmed, they become eval cases automatically, so every assertion no longer has to be written by hand. Those cases make the discovered defect part of subsequent regression testing, so its return can be caught before it reaches users again. That closes the loop from detection through diagnosis and repair to a repeatable check against the same silent failure.


