Your APM dashboard is green. Your tool calls are lying to you

Infrastructure monitoring sees latency and error rates. It does not see the tool call that returned the right status code with the wrong data, or the one that succeeded on the wrong record.

B

Balagei G Nagarajan

4 MIN READ


Hidden tool-level failures beneath green APM dashboard
TRAIL's breakdown of 841 errors across 148 traces makes this concrete.
— from “Your APM dashboard is green. Your tool calls are lying to you”

Key facts.

  • TRAIL (arXiv:2505.08638) analyzed 148 annotated agent execution traces totaling 1,987 OpenTelemetry spans, finding 841 errors across reasoning, execution, and planning, most of which would not produce error codes visible to standard monitoring (TRAIL, arXiv:2505.08638, 2025).
  • OpenTelemetry's GenAI semantic conventions define span attributes specifically for AI agent tool calls, including tool name, input, output, and reasoning trace, but these must be explicitly instrumented and are absent from most current deployments.
  • Measuring Agents in Production (arXiv:2512.04123) found that production agent failures frequently go undetected until customer complaints or business KPI degradation surfaces them, pointing to a monitoring gap at the semantic rather than technical layer.
  • Tool calls that return correct HTTP status codes but semantically incorrect data - such as retrieving records for the wrong customer or writing to the wrong account - produce no signal in latency or error rate metrics.
  • The gap between when an agent failure occurs and when it is detected through business KPI degradation averages days to weeks in organizations relying solely on infrastructure monitoring.
  • APM misses a 200 carrying the wrong customer; a more capable agent makes cleaner wrong calls TRAIL still counts as errors. (arXiv:2505.08638)

What APM sees and what it misses

Application performance monitoring answers three questions reliably: is the service up, is it responding within acceptable latency, and is it returning error codes. For deterministic software, those three questions cover most failure modes. For LLM agents, they cover approximately the loudest third. The silent two-thirds are semantic failures: the agent called the right tool, the tool responded correctly, and the result was wrong in a business sense.

TRAIL's breakdown of 841 errors across 148 traces makes this concrete. The errors span reasoning, execution, and planning categories. A reasoning error might be the agent deciding to query the wrong record. An execution error might be the agent parsing the response correctly but using the wrong field. A planning error might be the agent completing the wrong step in the right order. None of these produce an error code. All of them produce wrong business outcomes.

What tool-level observability actually requires

Tool-level observability for agents requires instrumentation at three layers that most teams do not have. First, input observability: what parameters did the agent supply to the tool, and where did each parameter value originate? Second, output observability: what did the tool return, and did the output match the expected schema and value range? Third, outcome observability: did the downstream business state change in the expected direction following the tool call? Standard APM provides none of these. OpenTelemetry's GenAI semantic conventions provide the data model; the instrumentation must be built.

Iceberg showing visible vs hidden tool failure types

Monitoring layers and what each catches

Monitoring layerWhat it detectsWhat it missesCoverage of agent failures
Infrastructure (APM)Crashes, timeouts, error codesAll semantic failures~30% of agent failures
Tool-call tracingParameter values, response contentBusiness outcome correctness~60% of agent failures
Semantic outcome monitoringBusiness state change correctnessLatent failures with delayed impact~80% of agent failures
Pattern-level monitoringFailure precursor signaturesNovel failure modes without prior patternOver 90% of agent failures

VibeModel's Pattern Intelligence Layer operates at the level standard monitoring cannot reach. By learning the tool call parameter patterns, response sequences, and business outcome signals that precede failures in your specific deployment, it identifies failure precursors before they produce customer impact. A tool call that historically precedes an incorrect business outcome 80% of the time is a failure signal even when it returns HTTP 200. That signal does not exist in APM. It exists in the pattern layer.

Frequently asked questions

What is the minimum viable monitoring setup for an agent in production?
Minimum viable is: (1) tool call input/output logging with parameter-level detail, (2) response validation against expected schema, (3) business outcome sampling at 10-20% of sessions to detect semantic failures. That combination catches most of what standard APM misses.

How does OpenTelemetry's GenAI semantic conventions help here?
They define a standard data model for AI agent tool call spans, including tool name, input arguments, output, and model inference details. Adopting the conventions means your tool call data is structured and queryable rather than buried in unstructured logs.

What should trigger an alert that infrastructure monitoring would not catch?
Session completion rate dropping without a corresponding change in error rate. Business KPI degradation correlated with specific tool call sequences. Unusual parameter value distributions in tool call logs. Each of these requires semantic monitoring that goes beyond status codes.


Share this post

Join the discussion

Have a take, a war story, or a question? Sign in with GitHub to comment and react. Comments are powered by GitHub Discussions, ad-free and yours to moderate.

Continue Reading

Find where your agent breaks, before you build it

Faultmap maps where your agent will fail from the goal and your data, then hands you the first test suite it has to pass.