Written by: Nimesh Chakravarthi, Co-founder & CTO, Struct | Last updated: October 1, 2026
Why AI Root Cause Analysis From Traces Works
AI root cause analysis from traces works best as a five-step pipeline: signal capture, topology mapping, anomaly isolation, causal correlation, and plain-language summary. This pipeline only works when the system validates evidence and falsifies competing hypotheses before presenting a conclusion.
Evidence validation turns anomaly ranking into true root cause analysis by pinpointing where abnormal behavior first appears in the dependency graph. Correlating traces with logs, metrics, and deployment timestamps on shared identifiers creates a single incident narrative that confirms or rules out span-level hypotheses.
LLM-only RCA hits an accuracy ceiling around 20.7% exact root-cause recovery because models summarize symptoms without deterministic evidence checks. A reliable system pairs deterministic investigation with probabilistic reasoning. Struct extends this pattern by anchoring every investigation to PR intent so teams can judge whether production behaves as intended, not just whether signals correlate after the fact.
See Struct Run RCA On Your Traces
The Omitted Step: Evidence Validation And Hypothesis Falsification
Root cause analysis requires hypothesis falsification, not just a plain-language summary. A summary without evidence checks performs pattern matching on symptoms instead of tracing causality.
Consider a concrete example. A checkout service slows down and an alert fires on checkout-service. The AI walks the dependency graph backward from the failing checkout span (trace ID a1b2c3d4, span ID e5f6g7h8) to its child, payment-service (span ID i9j0k1l2). It detects that payment-service p95 latency shifted from 150 ms to 2 s.
The system continues upstream and inspects the database span (span ID m3n4o5p6). It sees pool.wait_count at 50, up from 0. It then correlates this with the deployment timestamp for payment-service v2.4.1, which occurred 11 minutes before the anomaly onset. The AI concludes that a connection pool configuration change in payment-service v2.4.1 caused the incident. The checkout service only surfaced the symptom.
This workflow finds where abnormal behavior first appears instead of stopping at the service where the alert fired.
Run Evidence-Backed RCA On Your Traces
How To Correlate Traces With Logs, Metrics, And Deploys
Effective RCA joins traces, logs, metrics, and deploys on shared identifiers to create a unified incident story. The system uses trace IDs, span IDs, and timestamps as join keys so each hypothesis can be confirmed or ruled out with concrete evidence.
Atlassian treats RCA as a correlation problem across signal type, time, and topology. Their system detects anomalies independently in each signal, aligns them on a common timeline, and traces them through the service dependency graph.
The three core correlation mechanisms:
- Deploys: Join deployment timestamps against span anomaly onset. A deploy at 13:51 followed by a latency spike at 14:02 forms a strong causal signal. Atlassian’s causal direction heuristic states that if Service A calls Service B and both are anomalous in the same window, and Service B’s anomaly starts first, then Service B is more likely the fault origin.
- Logs: OpenTelemetry documentation notes that logs become far more useful when correlated with a trace and a span. Attaching log lines to the span that emitted them, using trace ID and span ID from the log record, supplies the “why” behind a span’s failure state.
- Metrics: Metric shifts such as CPU saturation, error rate, or connection pool depth confirm or refute span-level hypotheses. A database span with high
pool.wait_countgains support from a simultaneous spike in database connection metrics. OpenTelemetry guidance recommends correlating traces with logs and metrics by using trace spans as the join key, with metric Exemplars linking aggregated metric streams to the exact high-granularity trace span.
Struct connects to Datadog metrics, logs, and traces as primary inputs while adding cross-stack investigation into Sentry, GitHub, cloud logging, and other tools. The correlation layer spans the full signal set, not only what a single platform collects.
Generating And Falsifying Competing Hypotheses
Automated RCA works by generating multiple candidate causes and then proving or disproving each one with telemetry. The system must return a hypothesis plus the evidence trail, not just a conclusion.
The OpenRCA 2.0 benchmark (Fang et al., 2026) found that agents identified at least one correct root-cause service in 76.0% of cases. They grounded that service in a verified causal propagation path in only 61.5% of cases. Naming the right service differs from proving the causal path.
For the checkout → payment → database scenario, the system might explore:
- Hypothesis A: Database Connection Pool Exhaustion. Test: Inspect
pool.wait_counton the database span (span IDm3n4o5p6). A value of 50 and rising confirms the hypothesis. A value of zero falsifies it. - Hypothesis B: Bad Deploy To
payment-service. Test: Correlate anomaly onset at 14:02 UTC with the deployment timestamp ofpayment-servicev2.4.1 at 13:51 UTC. An 11-minute gap with no other changes in the window supports the hypothesis. Absence of a deploy falsifies it. - Hypothesis C: Downstream Timeout. Test: Check for timeout errors in
payment-servicelogs and spans. Presence of timeouts supports the hypothesis. Absence of such errors falsifies it.
The AI walks the dependency graph backward from the symptom and tests each hypothesis against available evidence until a single, well-supported explanation remains. Atlassian’s RCA system scores each candidate causal path using anomaly severity at each node, dependency relationship strength, and temporal distance from the symptom. It then ranks bundles by overall confidence and emits the top hypotheses instead of forcing one answer.
What Are Common Mistakes In AI-Driven Trace RCA?
Teams often rely on LLM-only RCA, where a model summarizes a trace waterfall without judging whether production behaves as intended. This approach groups symptoms instead of identifying causes. As the OpenRCA 2.0 benchmark showed, LLM-only recovery of the exact root-cause set tops out around 20.7%, which reflects an “ungrounded diagnosis” failure mode.
An LLM summarizing a trace might see a slow checkout-service and a slow payment-service and group them as one issue. That summary can miss the database as the true origin. A University of Waterloo WISE Lab study (Riddell et al., FORGE 2026) identified fabricated evidence and evidential insufficiency as the most common reasoning failures. LLM hypothesis claims need evidence-sufficiency checks before teams trust them.
The correct architecture splits the work. Topology expansion, span anomaly detection, and telemetry correlation run in code as deterministic steps. The LLM then generates and validates hypotheses against the evidence that code has assembled. Because the deterministic layer narrows the evidence set, the model reasons over a compact, curated context instead of raw telemetry. Coroot’s guidance notes that the hard part of AI RCA is now the harness: preparing the right context for the model before calling it. Struct uses frontier models to read telemetry, correlate across tools, and write hypotheses, after deterministic preprocessing assembles the evidence set.
See Deterministic Plus LLM RCA In Action
What An Evidence-Backed RCA Report Looks Like
An evidence-backed RCA report presents a probable cause with a confidence score and cites specific spans, timestamps, trace IDs, and the full investigation path. Every claim links to its supporting evidence.
Atlassian defines an evidence-backed root cause hypothesis as containing five components: the suspected root cause service, the propagation path, evidence at each node, a confidence score with a breakdown, and a human-readable narrative.
For the checkout → payment → database example, a complete report includes:
- Probable Cause: Connection pool exhaustion in
payment-servicev2.4.1. - Supporting Spans:
databasespanm3n4o5p6withpool.wait_count=50. - Timestamps: Anomaly onset at 14:02 UTC; deploy at 13:51 UTC.
- Trace IDs:
a1b2c3d4. - Confidence Score: 0.92.
- Investigation Path: The full sequence of queries and hypothesis tests, with each dismissed hypothesis linked to the observation that refuted it.
Struct correlates code, logs, traces, metrics, and exceptions into a cited timeline with a p50 time-to-root-cause under 4 minutes. Every claim links to its evidence with a confidence score and the full investigation path. Arcana reduced investigation time from 30 minutes to 2 minutes and now runs 2,100+ automated investigations per month using this approach.
How Coroot, Dynatrace, And New Relic Approach Trace RCA
Existing platforms show how different architectures tackle trace-based RCA and where their approaches stop. These examples highlight the value of deterministic pipelines and also their shared limits around intent and cross-stack context.
Coroot uses a deterministic upstream pipeline that assembles evidence from telemetry signals, then passes a compact context to an LLM in a single call with no agent loop. Coroot’s June 2026 experiment found that frontier models correctly identified root causes when given a well-prepared ~9,800-token context. Its LLM summaries operate post-hoc on telemetry and do not know the intent behind a change.
Dynatrace uses its Davis AI and Smartscape topology for deterministic, topology-based causal analysis. Dynatrace’s causal AI traverses the causal topology, visits each affected entity, evaluates findings and severities, and a ranking algorithm selects the highest-ranking root-cause candidate. Dynatrace also notes that its context model is built on known dependency information from Smartscape, OneAgent, and cloud integration, so dependencies outside Smartscape remain invisible.
New Relic offers topology-aware correlation across its platform. New Relic’s distributed tracing measures time spent in each service and sends that timing as spans combined into one distributed trace. New Relic automatically infers dependency and topology maps from traces, metrics, and metadata. Its correlation works strongly inside its own platform but can miss context when the root cause lives in a system New Relic does not instrument.
Where Intent-Anchored Investigation Goes Further
Post-hoc correlation explains what happened but cannot judge whether the behavior matched the change’s intent. Coroot, Dynatrace, and New Relic all begin their investigations after an alert fires and do not read the PR that introduced the change.
Struct anchors every investigation to PR intent, which post-hoc trace correlation cannot infer. It reads every PR, creates the monitors that change needs, and baselines those monitors on deploy. When an alert fires, the investigation starts from a known intent: Struct already understands what payment-service v2.4.1 should do, which monitors validate that behavior, and what the baseline looked like before the anomaly.
Struct ingests Sentry issues as they fire and correlates them with Datadog metrics, cloud infrastructure, GitHub deploy history, logs, traces, and other tools to produce a cited root-cause hypothesis. It sits on top of your existing observability stack such as Datadog, Grafana, Sentry, and AWS CloudWatch. Struct auto-dedupes related alerts with no configuration and runs one investigation per real incident, so deterministic deduplication happens before probabilistic hypothesis generation.
Arcana’s CTO, Siva Visakan Sooriyan, describes the outcome: “We investigate every Sentry alert — no exceptions. Struct made that sustainable by eliminating manual triage. Senior engineers got their time back for higher-leverage work, and the broader team adopted it without friction.” Arcana now runs 2,100+ automated investigations per month, with investigation time down from 30 minutes to 2 minutes.
Anchor RCA To PR Intent In Your Stack
Frequently Asked Questions
What Is The Difference Between AI Trace RCA And Manual Trace Analysis?
Manual trace analysis relies on an engineer opening a waterfall diagram and using intuition to spot anomalies, correlate signals across tools, and form a hypothesis. The process stays sequential, context-dependent, and limited by the engineer’s familiarity with the system.
AI trace RCA automates the causal reasoning layer. It maps topology from span parent-child relationships, isolates anomalous spans against baselines, and tests hypotheses against telemetry before presenting a conclusion. AI can walk the full dependency graph backward from a symptom and falsify competing hypotheses in parallel, while a human works serially under incident pressure. This approach finds where abnormal behavior first appeared instead of stopping at the alerting service.
Can AI Root Cause Analysis From Traces Replace My Existing Observability Tools?
AI trace RCA complements existing observability tools rather than replacing them. It sits on top of Datadog, Grafana, Sentry, AWS CloudWatch, and similar platforms, using their data as input for deeper causal analysis.
The observability platform collects and stores telemetry, while the RCA layer reasons over it. Replacing the collection layer would discard instrumentation, dashboards, and alerting that teams already rely on. A sound architecture keeps those tools in place and adds an investigation layer that traverses the dependency graph, correlates signals across sources, and generates evidence-backed hypotheses. Struct, for example, creates monitors that live in your Datadog account and reasons over existing telemetry instead of extracting it.
How Does AI Handle Novel Or Unknown Failure Modes?
A robust system uses probabilistic reasoning to generate new hypotheses from evidence instead of matching only against historical patterns. Pattern-matching approaches require prior examples and struggle with novel failures.
A system that builds a live dependency graph from span relationships, detects anomalies statistically against recent baselines, and generates hypotheses from the structure of the evidence can surface a root cause it has never seen before. The hypothesis may carry a lower confidence score, which correctly signals uncertainty. The system should present a ranked list with evidence for each candidate instead of forcing a single answer when confidence is low. Human review stays in the loop for low-confidence diagnoses, especially for high-blast-radius actions like rollbacks.
What Telemetry Do I Need For AI Trace RCA To Work Well?
A minimum viable setup includes three elements: distributed tracing with consistent context propagation across service boundaries, structured logs with trace ID and span ID fields, and deployment event timestamps.
Without context propagation, spans appear as disconnected root traces and the system cannot reconstruct the dependency graph. Without structured logs correlated to spans, the “why” behind a span’s failure state remains hidden. Without deployment timestamps, correlation between a code change and anomaly onset becomes guesswork instead of evidence.
OpenTelemetry’s W3C Trace Context standard handles propagation. The key operational discipline is ensuring every service in the call path injects and extracts the traceparent header correctly. Teams running Datadog or Sentry with Slack alerts already have enough signal for an AI RCA layer to operate effectively.
Conclusion
Trace data encodes rich causal information. Each span carries a trace ID, a parent ID, a status, and attributes that describe what happened and where. Parent-child relationships between spans define the dependency graph.
The causal chain from a configuration change to a user-facing timeout becomes recoverable when the investigation walks the graph backward, correlates the right signals, and falsifies competing hypotheses before presenting a conclusion. Manual analysis struggles to perform that process at incident speed.
AI root cause analysis from traces automates the causal reasoning layer when deterministic investigation and probabilistic reasoning work together. Code handles topology mapping, span isolation, and telemetry correlation. The LLM focuses on hypothesis generation and validation over a compact, evidence-assembled context.
Struct extends this pattern by anchoring every investigation to PR intent, closing the gap between what happened and what was supposed to happen. You can run it in shadow mode next to your alert channel for two weeks at no cost.
Run Struct In Shadow Mode With Your Alerts