Before diving into this content, it might be helpful to read the following:
| Field Name | Type | Description |
|---|---|---|
| id | UUID | Unique identifier for the span. |
| name | string | The name associated with the run. |
| inputs | object | A map or set of inputs provided to the run. |
| run_type | string | Type of run, e.g., “llm”, “chain”, “tool”. |
| start_time | datetime | Start time of the run. |
| end_time | datetime | End time of the run. |
| extra | object | Any extra information run. |
| error | string | Error message if the run encountered an error. |
| outputs | object | A map or set of outputs generated by the run. |
| events | array of objects | A list of event objects associated with the run. This is relevant for runs executed with streaming. |
| tags | array of strings | Tags or labels associated with the run. |
| trace_id | UUID | Unique identifier for the trace the run is a part of. This is also the id field of the root run of the trace |
| dotted_order | string | Ordering string, hierarchical. Format: run_start_timeZrun_uuid.child_run_start_timeZchild_run_uuid… |
| status | string | Current status of the run execution, e.g., “error”, “pending”, “success” |
| child_run_ids | array of UUIDs | List of IDs for all child runs. |
| direct_child_run_ids | array of UUIDs | List of IDs for direct children of this run. |
| parent_run_ids | array of UUIDs | List of IDs for all parent runs. |
| feedback_stats | object | Aggregations of feedback statistics for this run |
| reference_example_id | UUID | ID of a reference example associated with the run. This is usually only present for evaluation runs. |
| total_tokens | integer | Total number of tokens processed by the run. |
| prompt_tokens | integer | Number of tokens in the prompt of the run. |
| completion_tokens | integer | Number of tokens in the completion of the run. |
| total_cost | string | Total cost associated with processing the run. |
| prompt_cost | string | Cost associated with the prompt part of the run. |
| completion_cost | string | Cost associated with the completion of the run. |
| first_token_time | datetime | Time when the first token of a model output was generated. Only applies for runs with run_type="llm" and streaming enabled. |
| session_id | string | Session identifier for the run, also known as the tracing project ID. |
| in_dataset | boolean | Indicates whether the run is included in a dataset. |
| parent_run_id | UUID | Unique identifier of the parent run. |
| execution_order (deprecated) | integer | The order in which this run was executed within the trace. |
| serialized | object | Serialized state of the object executing the run if applicable. |
| manifest_id (deprecated) | UUID | Identifier for a manifest associated with the span. |
| manifest_s3_id | UUID | S3 identifier for the manifest. |
| inputs_s3_urls | object | S3 URLs for the inputs. |
| outputs_s3_urls | object | S3 URLs for the outputs. |
| price_model_id | UUID | Identifier for the pricing model applied to the run. |
| app_path | string | Application (UI) path for this run. |
| last_queued_at | datetime | Last time the span was queued. |
| share_token | string | Token for sharing access to the run’s data. |
What is dotted_order?
A run’s dotted order is a sortable key that fully specifies its location within the tracing hierarchy.
Take the following example:
- The “id” is equal to the last 36 characters of the dotted order (the suffix after the final “Z”). See
0ec6b845-18b9-4aa1-8f1b-6ba3f9fdefd6for example in the grandchild. - The “trace_id” is equal to the first UUID in the dotted order (i.e.,
dotted_order.split('.')[0].split('Z')[1]) - If “parent_run_id” exists, it is the penultimate UUID in the dotted order. See
a8024e23-5b82-47fd-970e-f6a5ba3f5097in the grandchild, for an example. - If you split the dotted_order on the dots, each segment is formatted as (
<run_start_time>Z<run_id>)
Connect these docs programmatically to Claude, VSCode, and more via MCP for real-time answers.