Ratel Docs
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:

UnitWhat it isHow the Platform groups it
SpanOne step: a model call, a tool call or an agent step.One OpenTelemetry span.
TraceAll spans of one request.The spans that share a trace id.
TurnOne run of your agent: the user asks, the agent answers.The agent span of a trace, with the model and tool calls inside.
SessionOne conversation, turn after turn.The turns that share a conversation id, such as gen_ai.conversation.id or session.id.
LogA 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

On this page