Skip to main content
Agentic systems chain dozens of operations — LLM calls, tool invocations, sub-agent handoffs — and it’s hard to understand the flow by looking at individual spans. Agent Trajectory visualizes the execution as an interactive graph and path diagram so you can see which agents call which, where loops happen, and which paths lead to failures.
Agent Trajectory view showing execution flow across agents in Arize AX
This requires span attributes that identify agents and define transitions between them. These are plain OpenTelemetry span attributes, so the same pattern works in any language.

Frameworks with Built-In Support

These frameworks set the required attributes automatically through their auto-instrumentors — no additional setup needed: If your framework isn’t listed above, you can set the attributes manually:

Custom Implementation

Add these attributes to your agent spans: You only need to annotate the components you want in the graph — not every span.

Multi-Level Hierarchy

For agents that call sub-agents, nest the spans and set graph.node.parent_id to point to the parent. Arize AX uses these relationships to build the graph:
This creates the graph structure:

Next step

See what each request is costing you:

Next: Track Costs