- Trace hierarchy analysis (the AI Analysis tab in the left-hand view-mode row): reviews the root span and every child span together, so you can understand the full request - agent path, tool calls, model calls, retries, errors, and cost drivers.
- Individual span analysis (the AI Analysis tab in the right-hand attributes panel): focuses on the single span currently selected, for when you need to inspect one model call, tool execution, retrieval step, error, or latency hotspot.
Analysis dimensions
Each run is broken into dimension tabs:- Strengths: what the trace did well - efficient paths, good cache usage, appropriate model choice.
- Improvements: concrete, actionable changes, each with a severity, an explanation, and a suggested fix shown as a word-diff preview.
- Wrong turns: retries, repeated span names, and other signs the agent backtracked or looped.
- Cost: cost per call, the most expensive span, and where spend concentrates.
- Token efficiency: input/output/cache/reasoning token usage, duplicate tool or retrieval inputs, and repeated context.
- Path: the request’s execution path across services, tools, databases, and HTTP calls.
Run analysis from trace details
- Open a trace from the Traces page or from a trace widget.
- Select the AI Analysis tab - in the left panel for the whole trace, or in the right panel for the currently selected span.
- Click Analyze. Progress streams in as the analysis runs.
- When the run completes, it’s saved to a run history tab so you can revisit it without re-running. Use Re-run only when the trace data or your investigation question has changed.
Run analysis from Otter
You can also ask Otter to analyze traces or spans by natural language - Otter has dedicated tools for running or retrieving AI Analysis runs, including by session, user, or any custom span attribute:Traces & Exceptions
Where the AI Analysis tab lives inside the trace detail view
Chat with Otter
Ask Otter to run analysis, find traces, or explain findings in natural language

