> ## Documentation Index
> Fetch the complete documentation index at: https://docs.paradime.io/llms.txt
> Use this file to discover all available pages before exploring further.

# Span reference

> Every kind of step in a DinoAI session trace: what it records, its name and subtitle, its fields, its status values, and how its type shows in the graph.

A trace is a list of spans, one per step, built from the session's log in order. Each span has a kind. The graph shows each span as a node, with a type that comes from its kind.

## Span kinds

| Kind | Type in the graph | Name | Subtitle | Timed |
| - | - | - | - | - |
| `session` | **agent** | The agent's name | Who the agent acts as | No |
| `turn` | **message in** | `turn 1`, `turn 2`, … | The message that opened the turn, up to 120 characters | No |
| `message` | **message in** | `user`, `steer`, or `stop` | The sender | No |
| `model_call` | **model call** | `model (<role>)`, for example `model (main)` | The model id once the call finishes, or the fault if it fails | Yes |
| `tool_call` | From the tool, see [Tool types](#tool-types) | The tool's name, for example `read_file` | The tool's label, such as a path or a command, up to 120 characters | Yes |
| `answer` | **answer** | `answer` | Empty, or `redone by …` when the answer was sent back | No |
| `route_try` | **internal** | The route | The fault, if the try failed | Yes, not in the flight recorder |
| `warning` | **internal** | The feature, for example `model` | The action, for example `fell_back` | No |
| `decision` | **internal** | `<plug>: <answer>` | The point it was taken at, and why | No |
| `edit` | **internal** | `<edit> x <count>` | Empty | No |
| `fact` | **internal** | The fact's name | Its data, up to 200 characters | No |

A turn starts when a queued message arrives and no turn is open. The message that opens it merges into the turn's node. A `message` named `compact` is a request to compact the conversation, with its sender as the subtitle.

`route_try`, `warning`, `decision`, `edit`, and `fact` spans, a message from DinoAI's own guard, and an answer that was redone are internal. They show only with **Internal steps** on. See [Internal steps](https://docs.paradime.io/products/dino-ai/traces/internal-steps.md).

### Tool types

A tool declares what it does, and the trace shows the call with that type. The trace doesn't know tools by name.

| Tool kind | Type in the graph | For example |
| - | - | - |
| `read` | **read** | `read_file` |
| `search` | **search** | `ripgrep_search` |
| `write` | **write** | `edit_file`, `write_file` |
| `run` | **run** | `run_terminal_command` |
| `message` | **message out** | Posting to Slack |
| `sub_agent` | **subagent** | `run_subagent` |
| `ask` | **ask** | A question to you |
| `other` | **tool** | Any other tool |

## Where a span sits

A session holds its turns. A turn holds its model calls. A model call holds its route tries, its warnings, and the tool calls it asked for. A tool call always hangs from the model call that asked for it.

## Fields

| Field | Spans | What it holds |
| - | - | - |
| Duration | All | Milliseconds from the span's start to its end. Instant spans have `0`. A route try's start is its end minus its duration. |
| Credits | `model_call` | The credits billed for the call. When the log has no billed amount, the call's tokens priced at the model's rates. Empty when neither is known. |
| Status | All | See [Status values](#status-values). |
| Tokens | `model_call`, `route_try` | Input, output, cached input, and cache creation tokens. A route try has input and output only, and keeps them when it fails. |
| Model | `model_call` | The model id that answered, for example `claude-sonnet-5-5`. |
| Input | `model_call`, `tool_call`, `route_try` | A model call: what is new in its prompt since the previous call, without the model's own replies. **Show full text** loads the whole prompt. A tool call: its arguments. A route try: the model, host, and provider request id. |
| Output | Most | A model call: the text the model wrote. A tool call: the text the tool returned. A failed model call or route try: the fault's message. A message or answer: its text. |

Input and output are cut at 2,000 characters, with `… [N more]` at the end. **Show full text** loads the rest.

In a model call's input, a tool call reads `→ <tool> <arguments>` and its result `← <text>`, or `← error: <text>` when the tool failed.

## Status values

| Status | Spans | Meaning |
| - | - | - |
| `running` | All timed spans, turns, session | Started, not finished yet. |
| `ok` | All | Finished. For a route try, this route served the call. |
| `error` | `tool_call` | The tool ran and returned an error. |
| `refused` | `tool_call` | Paradime refused to run the call. |
| `interrupted` | `tool_call`, `model_call`, `route_try` | Stopped before it finished. |
| `failed` | `model_call`, `route_try`, `turn` | The call or try failed. The subtitle names the fault. |
| `waiting` | `turn` | The turn ended waiting for you, for example after a question. |
| `stopped` | `turn` | The turn was stopped. |
| `limit` | `turn` | The turn ended at a limit. |

## Credits and share of top

Only model calls carry credits. Tool calls, messages, and answers show `—`.

The inspector's **% of top** is the step's credits divided by the credits of the most expensive single step in the session, rounded. The most expensive step shows `100% of top`, and a step without credits shows `0% of top`. It compares steps with each other. It isn't a share of the session's total. For the totals, see [Metrics](https://docs.paradime.io/products/dino-ai/traces/metrics.md).


## Related topics

- [Debug and tune a DinoAI agent with its trace](https://docs.paradime.io/guides/programmable-agents/debug-an-agent-with-its-trace.md)
- [Traces](https://docs.paradime.io/products/dino-ai/traces/index.md)
- [Reading a trace](https://docs.paradime.io/products/dino-ai/traces/reading-a-trace.md)
- [API Reference](https://docs.paradime.io/developers/graphql-api/api-reference/index.md)
- [Configuration Reference](https://docs.paradime.io/products/bolt/creating-schedules/schedules-as-code/configuration-reference.md)


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.