Agent Observability Tools That Cluster Failures by Root Cause Compared on Instrumentation Requirements
Compares four tools on the evidence each needs to trace failures.

How well a platform can group recurring AI agent failure patterns automatically depends on both the evidence it gets and its clustering features. LangSmith, Arize Phoenix/AX, Langfuse, and Galileo differ in how much instrumentation they require and how much analysis they automate. The practical deciding factor is whether the combination of framework telemetry and platform evaluation can connect repeated failures to their originating decisions.
Why agent failures don't surface as errors and what that means for observability
An agent can complete a workflow successfully while violating its instructions. A customer support agent that promises a refund outside policy may produce no exception, failed request, or error code. The workflow completes, but the answer is wrong. Traditional logs and metrics look for threshold crossings and execution failures, so they cannot establish whether that promise was permissible. Detecting the violation means checking what the answer says as well as the execution status.
This distinction extends beyond the final answer. Context loss, goal drift, tool misuse, and retry loops can all leave structurally successful traces while degrading the result. Quality evaluation can expose those failures, but identifying a bad outcome does not establish where it began. Detection is only the first diagnostic step. An observability system must also preserve the evidence that connects the visible symptom to an earlier action.
How do observability tools group recurring agent failures by root cause?
Even when detection works, teams still have to review hundreds of flagged traces. Clustering groups traces by a shared signature, including the same error type, tool call, execution step, or recurring pattern. Instead of reviewing 247 individual flagged traces, a team can investigate a CRM API timeout–retry loop across 89 sessions. The unit of work becomes a recurring issue. Clustering links trace collection to root-cause attribution, after which teams can turn production failures into evaluations.
A shared signature is not necessarily a shared cause. Scale AI’s Continual Search paper establishes that causal evidence in long agent traces can be sparse, distributed across distant steps, and disconnected from the visible failure. A one-shot judgment may settle on a plausible diagnosis before examining upstream evidence. Clustering therefore needs more than a similarity score. A platform that groups symptoms but attributes shallowly leaves engineers with a category, while deeper attribution can demand more instrumentation and maintenance.
What telemetry fields actually enable fault-origin localization, not just failure detection
TelemetrySuffBench separates four diagnostic levels, namely failure detection, fault classification, component localization, and exact origin-step localization. A terminal pass/fail status supports detection, but it does not explain the decision that produced the failure. Reliable attribution needs decision content and provenance together. Decision content records how the model reasoned or what action it chose, while provenance shows which retrieved document, tool schema, or prior step informed it. The link between them makes the record useful for causal diagnosis.
When decision content was removed, origin-step accuracy fell to zero for every model tested, while removing provenance caused large losses that varied by model. OpenTelemetry-compatible and OpenInference-compatible views still had near-perfect detection, but their origin-step accuracy was at most 0.5%. Those results concern the benchmark’s telemetry views. They show that a production trace can fit a schema yet lack the evidence needed for localization.
Proprietary models introduce a further limit when they do not expose thinking tokens. A platform cannot recover an unobserved internal causal step simply by analyzing the same trace more deeply. Application-layer logging of intermediate decisions provides the available mitigation. The comparison must therefore separate what was recorded from what a tool inferred. Does each tool require teams to emit richer decision-content and provenance fields manually, or can it derive the needed context from standard spans?
How the two dominant telemetry standards — OpenTelemetry and OpenInference — shape what each tool can ingest
OpenTelemetry provides a shared instrumentation substrate, while OpenInference adds conventions for AI applications, including LLM invocations, retrieval context, and external tool use. Most agent-framework instrumentors are built to use those AI-specific conventions. An OpenInference-compatible library can export usable spans to a collector that supports the telemetry protocol, making the standard a practical portability layer between frameworks and platforms. This reduces dependence on a single ingestion path. It does not establish that the exported spans contain every field needed for attribution.
That distinction separates ingestion compatibility from diagnostic sufficiency. A backend may accept a trace even if it lacks the decision content or provenance needed to explain why it failed. The benchmark’s findings apply directly to that gap. Frameworks determine much of what gets recorded, and platforms differ in what they can infer or evaluate from those records.
What each major agent framework emits by default and what it leaves out
LangChain and LangGraph expose node outputs and state transitions through their callback system, but they do not automatically emit intermediate reasoning as decision-content fields. Applications must log that content explicitly. Node.js also requires manual instrumentation of @langchain/core/callbacks/manager because of how the package loads callbacks. A native platform connection does not remove the need to distinguish recorded state from the decision behind it.
OpenAI Agents SDK ships built-in tracing for every model inference, tool call, and handoff in a structured trace tree. Its official documentation states that tracing is unavailable to organizations using OpenAI’s APIs under a Zero Data Retention policy. That restriction changes the available instrumentation architecture. The June 2026 @mastra/openai integration offers another path to OTel coverage by running these agents through Mastra’s generate() or stream() with tracing and usage continuity. That path should not be read as an exception to the tracing policy.
Vercel AI SDK provides native OTel spans when telemetry is enabled. AI SDK v6 uses experimental_telemetry: { isEnabled: true }, while v7 uses telemetry: { isEnabled: true } with @ai-sdk/otel registered globally. Coverage includes ai.generateText, ai.toolCall, TTFT, and token counts, flowing to a backend that supports the telemetry protocol. Local inspection has a separate development-time option. @ai-sdk/devtools provides that inspection without external infrastructure.
Mastra illustrates how framework instrumentation can capture context beyond the main model and tool calls. Its hardcoded rate-limit backpressure sleep appears as a rate-limit-sleep span with remainingTokens and delayMs metadata. Those fields expose the context behind that execution delay. They are useful, but not a complete causal record. Across these frameworks, structural spans are more readily available than decision content and retrieval provenance, which still require additional effort.
How LangSmith, Arize Phoenix/AX, Langfuse, and Galileo each approach failure clustering and what they require to do it
LangSmith has its deepest native integration with LangChain and LangGraph, aligning traces, the node graph, state at each step, and the deployment path with near-zero glue code. Thread and session evaluators can judge whole conversations, including a refund promised outside the 30-day window that a span-level pass/fail score might miss. This makes conversational context available for evaluation. Outside that ecosystem, teams must wire OTel spans manually. The native integration reduces collection work, but the framework’s missing intermediate reasoning still requires explicit logging where origin-step attribution depends on it.
Arize Phoenix is the open-source evaluation and tracing layer, while AX adds embedding-drift dashboards, production alerts on per-metric thresholds, and week-over-week regression monitoring. Both the ingestion approach and session-level evaluation support analysis across framework boundaries through OTel and OpenInference spans. Semantic similarity provides a useful grouping signal. Embedding-drift analysis can surface related patterns without explicit decision-content fields, but it may miss origins that differ semantically from their symptoms. Dynatrace closed its acquisition of Arize on 1 October 2026, and Phoenix and AX remained standalone as of the 21 October 2026 update, making the subsequent roadmap relevant to evaluation.
Langfuse offers a permissively licensed, self-hostable deployment through Docker Compose and Kubernetes on AWS, GCP, and Azure. It ships a LangChain integration and accepts OTel spans from other frameworks, although it is not LangGraph-native. Detailed prompt, output, and token tracing gives teams more to analyze, but adds more runtime overhead than lighter tracing approaches. Clustering and attribution are less automated than in platforms with built-in LLM-as-judge pipelines, so teams must build more of the analysis and alerting layer themselves.
Galileo focuses on LLM-as-a-judge reliability and runtime protection, with Luna-2 small-language-model evaluators supporting low-latency scoring of high-volume production traffic. Its guardrails can act on risky outputs inline, before post-hoc analysis. AutoTune, released April 2026, reduces ongoing judge-calibration work. The required evidence is comparatively lighter. Galileo needs model inputs and outputs at each step for its judges, but that evidence may not expose a cause that lies upstream of the evaluated output.
These approaches automate different parts of the diagnostic loop. Conversation evaluation, embedding-based grouping, detailed trace collection, and inline judging should not be treated as interchangeable forms of root-cause attribution. The operational test extends beyond the dashboard. A closed loop connects a trace to a clustered issue, routes a new pattern to Slack, supplies fix context to a coding agent over MCP, and turns the production failure into a regression evaluation. Assessing that loop requires separating what the platform automates from what the team must connect, without assuming that any accepted trace is already localization-sufficient.
How the instrumentation requirement changes when failures span multiple agents or long execution horizons
Long-horizon execution makes causal evidence harder to find even when it has been recorded. Logs can grow to millions of tokens, with the decisive action far from the visible failure. Continual Search shows that iterative examination over successive turns improves attribution compared with one-shot judgment. Better search can outweigh a stronger model. The research finds that lower-tier models can surpass higher-tier ones when their search strategy is better.
The same paper shows how much work an investigation can take through a real Hugging Face security incident that required examining more than 70,000 agent messages and files. Reading the records again can uncover evidence missed in earlier passes. A cause may sit in one agent’s trace while its effect is visible in another, so clustering within a single agent’s execution can miss the origin altogether. Longer records and distributed records require both a search strategy and a way to connect the evidence.
Reliable attribution therefore needs correlation identifiers linking spans across agents and sessions, in addition to decision content and provenance within each trace. Teams must instrument those identifiers explicitly when their framework does not emit them. Missing links cannot be reconstructed reliably after failure. Nor can a search strategy expose proprietary reasoning that was never available in the record.
Matching instrumentation investment to what your team's agents actually need to surface
If a LangGraph team needs state inspection and whole-conversation evaluation with little integration work, native coverage can reduce its collection burden, with higher per-trace spend at scale as the trade-off. If data sovereignty or cost instead calls for self-hosting, the team must budget to build analysis and alerting because control over deployment does not automate that work. Those are different engineering commitments. If the risk concentrates in high-volume output quality and policy compliance, input/output capture at every step supports a lighter evaluation path. That choice is insufficient when the required answer is which upstream decision caused the violation.
If a mixed-framework stack needs semantic grouping and production regression alerts, portable OTel ingestion reduces framework-specific integration work, while acquisition-related roadmap changes remain part of the platform decision. If the failure crosses agent or session boundaries, correlation identifiers need early investment regardless of backend. Decision content and provenance are the baseline for reliable causal attribution, whether captured explicitly or supplied through available application context. The appropriate investment closes that specific evidence gap rather than collecting the most exhaustive trace possible.


