Concepts
Runs: sessions, turns, traces, spans and logs
How the Platform groups what your agent sends, from a whole conversation down to one model call.
Your agent sends spans. The Platform groups them into larger units:
| Unit | What it is | How the Platform groups it |
|---|---|---|
| Span | One step: a model call, a tool call or an agent step. | One OpenTelemetry span. |
| Trace | All spans of one request. | The spans that share a trace id. |
| Turn | One run of your agent: the user asks, the agent answers. | The agent span of a trace, with the model and tool calls inside. |
| Session | One conversation, turn after turn. | The turns that share a conversation id, such as gen_ai.conversation.id or session.id. |
| Log | A log record your agent sent. | OTLP logs at /v1/logs, linked to their span when they carry its id. |
What a run needs
- A model call needs its model and token counts. The Platform prices it from these.
- A turn needs an agent span around its calls. A lone model call shows only under Spans.
- A session needs a conversation id on the spans. Without it, each turn is its own session.
- Message text needs content capture. See OpenTelemetry.
Agent health counts turns as runs. Plans count model calls as events.
Where this shows up
- Traces: one tab per unit, Sessions, Turns, Spans and Logs.
- Session replay: one session, step by step.
- Overview: runs, failed runs, duration and spend.
- Agent health: reads turns.
- Send data: how each source sends spans.