AI Traces show how an application request runs across agents, model calls, tools, and services. Use traces to identify which execution step contributed to latency, returned an error, increased token or tool usage, or may have contributed to an unexpected response.

AI Traces tab showing anomaly summaries, evaluation impact, trace filters, and request-level trace details

When to use AI Traces

Use AI Traces when:

  • An application request is slow, fails, or produces an unexpected response.
  • An AI Evaluation finding identifies an affected session, trace, or span.
  • An AI Logs pattern requires request-level context.
  • Token usage, tool calls, model calls, retrieval activity, or execution-step counts have changed.
  • You need to compare an affected request with a request that behaved as expected.
  • You need to follow an agentic workflow across agents, models, MCP operations, tools, and supporting services.

Find an affected request

  1. Select the AI environment, application, and time range that include the reported behavior.
  2. Open the application’s AI Traces tab.
  3. Review Sessions: Total and Eval Impacted for the selected interval.
  4. Review anomaly tiles for unusual latency, token usage, execution steps, model calls, tool calls, retrieval activity, or cache usage.
  5. Use the runtime, evaluation-impact, and evaluation-coverage filters to narrow the trace list.
  6. Compare latency, token usage, and span counts across the returned traces.
  7. Select a trace to inspect its execution details.

Understand the session summary

The session summary appears above the anomaly and trace sections.

SummaryWhat it shows
Sessions: TotalTotal number of sessions available for the selected application and time range.
Eval ImpactedNumber of sessions with at least one trace or span identified as impacted by AI Evaluation.

A session and a trace are different units. A session can contain multiple traces, and each trace can contain multiple spans.

Understand trace anomalies

The Trace anomalies - 7-day P95 section compares selected trace signals with a per-application seven-day baseline when sufficient history is available.

Each anomaly tile can show:

ValueMeaning
CountNumber of traces that meet the anomaly condition.
PercentagePercentage of the applicable trace population that meets the anomaly condition.
DescriptionAdditional information about the threshold or detected behavior.

For example, a High Latency tile showing 10 | 20.41% means that 10 traces meet the high-latency condition and represent 20.41% of the applicable trace population.

Anomaly types

AnomalyWhat it identifiesWhat to review
High Token UsageTraces with unusually high total token consumption compared with the baseline.Input and output tokens, prompt size, model calls, and long or repetitive interactions.
High LatencyTraces with latency above the application's baseline threshold.Long-running spans, model inference, agent execution, tools, and downstream services.
High StepsTraces with unusually high execution-step counts.Repeated agent actions, loops, retries, and unnecessary workflow steps.
High Reasoning/LLM CallsTraces with unusually many reasoning or model calls.Repeated model calls and inefficient agent execution paths.
High Tool CallsTraces with unusually many tool invocations.Repeated tools, retries, and unnecessary tool usage.
High Input Token UsageTraces with unusually high input-token consumption.Large prompts, conversation history, retrieved context, and tool results passed to models.
High Output Token UsageTraces with unusually high output-token consumption.Long responses, repetitive generation, and unnecessary detail.
Low Cached Token UsageTraces with unusually low cached-token use compared with the baseline.Cache effectiveness and model-serving behavior.
High Retrieval CallsTraces with unusually many retrieval operations.Repeated searches, retrieval loops, and workflow design.
High Non-DB Tool CallsTraces with unusually many non-database tool operations.MCP, HTTP, API, and other external tool interactions.

Select an anomaly tile to narrow the trace list when filtering is available.

Understand trace filters

The filter summary shows the number of traces matching the current criteria.

FilterWhat it shows
AllAll traces matching the current filter criteria.
FailedTraces whose runtime execution status is failed.
PassedTraces whose runtime execution completed successfully.
ImpactedTraces associated with an AI Evaluation finding.
Not ImpactedTraces not identified as impacted by AI Evaluation.
EvaluatedTraces associated with sessions for which evaluation results are available.
Not EvaluatedTraces whose associated sessions do not yet have evaluation results.

A trace can have Passed runtime status and still be Impacted by AI Evaluation. Runtime success means the request completed without a reported execution failure. It does not mean the generated response met quality, safety, grounding, or relevance requirements.

Understand the trace list

The trace table provides request-level information for traces matching the selected filters.

FieldWhat it shows
Start TimeTime at which the trace started.
StatusRuntime execution result, such as Passed or Failed.
Trace IDUnique identifier for the trace. Use it to correlate the request with spans, logs, and other telemetry where supported.
Session IDSession containing the trace. One session can contain multiple traces.
Model NameModel associated with the trace when model information is available.
Eval ScoreEvaluation score associated with the trace's session when evaluation information is available. Interpret it with the evaluation findings and pass rules rather than as a standalone result.
Latency (ms)Request latency reported for the trace.
Total TokensTotal input and output token consumption associated with the trace.
LLM SpansNumber of spans representing LLM or model operations.
MCP SpansNumber of spans associated with Model Context Protocol operations.
Tool SpansNumber of spans associated with observed tool operations.
DurationDuration value reported for the trace. Open the trace to understand how the value relates to overlapping and nested spans.

Interpret the trace numbers together

Do not use one field alone to determine the cause of an issue. Compare related values and open the trace for confirmation.

PatternWhat to review next
High latency and many LLM spansCheck for repeated or long-running model calls.
High latency and many tool spansReview tool-call duration, retries, and downstream services.
High token count and many LLM spansCheck whether repeated model calls or large contexts are increasing consumption.
High MCP span countReview MCP service interactions, calls, retries, and duration.
Passed status and low evaluation scoreInvestigate response quality rather than runtime execution.
Passed status and Impacted stateOpen AI Evaluation and review the impacted spans.
Many tool spans with few errorsReview workflow efficiency even when tools technically succeeded.
High input-token usageInspect prompt size, conversation history, retrieved context, and tool results.
High output-token usageInspect response length and possible repetitive generation.

More spans do not necessarily indicate an error. A complex request can legitimately require multiple agents, model calls, MCP operations, and tools. Compare the affected trace with a representative trace for the same workload.

Read a trace

Select a trace to open its details. Available tabs, fields, and attributes depend on the instrumentation and telemetry collected.

ViewWhat it helps you investigate
AI AnalysisAI-specific session or trace summaries and available execution attributes.
TimelineExecution order and duration of model, agent, service, retrieval, MCP, and tool spans.
LatencyService contribution to trace duration and the services accounting for significant execution time.
Service MapsRelationships between services and resources involved in the request. Use this view to explore execution dependencies where supported.

Expand the trace and follow parent and child spans. Review:

  • Span status
  • Start time
  • Duration
  • Parent-child relationships
  • Agent, service, model, or tool information
  • Model inputs and outputs, when collected
  • Tool arguments and results, when collected
  • Token attributes
  • Related Kubernetes resources
  • Available links to logs and resource details

Interpret timing carefully

The sum of individual span durations can exceed the end-to-end trace duration when calls run in parallel or when parent and child spans overlap.

Similarly, service percentages in the Latency view can overlap because nested services can contribute to the same execution interval.

Use the Timeline and parent-child relationships instead of adding every span duration as though all work occurred sequentially.

Distinguish runtime status from evaluation

Trace status and AI Evaluation answer different questions:

SignalQuestion answered
Trace statusDid the request complete successfully at runtime?
Evaluation resultDid the generated response meet applicable quality, risk, efficiency, and grounding requirements?

A request can finish successfully and still receive a poor evaluation result. A recent request can also be complete but not yet evaluated.

Use the AI Evaluation tab and the associated trace together when investigating a response-quality issue.

Investigation workflow

  1. Select the application and time range that match the reported behavior.
  2. Review session totals and evaluation impact.
  3. Select the relevant anomaly or trace filter.
  4. Compare the affected trace with a similar trace that behaved as expected.
  5. Review latency, token usage, and LLM, MCP, and tool span counts.
  6. Open the trace and identify long-running, failed, repeated, or unusual spans.
  7. Review the span’s attributes and its parent-child context.
  8. Follow the relevant model, tool, agent, service, or infrastructure relationship.
  9. Compare trace timing with application metrics, model metrics, AI Logs, and alerts from the same interval.
  10. Validate the suspected cause with the underlying telemetry and resource details.

Data and privacy considerations

Missing spans can indicate incomplete instrumentation, sampling, export failure, or data retention. Missing spans do not prove that an operation did not occur.

Agentic traces can contain prompts, responses, retrieved content, tool arguments, tool results, and model attributes. Review collection, access, sharing, and retention requirements before enabling or distributing trace data.

Data availability

Trace information can be unavailable or incomplete when:

  • Application instrumentation is not enabled.
  • The application did not generate traffic during the selected time range.
  • Sampling excluded the trace.
  • Agentic span capture is not enabled for the applicable workload.
  • Required trace attributes are not collected.
  • Telemetry export failed or was delayed.
  • Retention limits removed older trace data.
  • Your account cannot access the underlying trace or related signal.