Get project trace
Returns a single trace by id, including the captured system instructions and the conversation messages from the trace's last LLM-completion span.
Path parameters
Project slug (human-readable identifier)
Project slug (human-readable identifier)
32-character trace identifier.
32-character trace identifier.
Response
Trace detail
Organization that owns this trace.
Project this trace belongs to.
32-character trace identifier.
Total number of spans in the trace.
Number of spans flagged with an error status.
ISO-8601 timestamp of the trace's earliest span.
ISO-8601 timestamp of the trace's latest span.
Wall-clock duration of the trace in nanoseconds.
Nanoseconds from the start of the first LLM span to its first emitted token. 0 if not measured.
Total input tokens across LLM spans.
Total output tokens across LLM spans.
Total tokens served from the provider's prompt cache.
Total tokens written to the provider's prompt cache.
Total reasoning tokens reported by the model.
Sum of all token counters.
Cost of input tokens in microcents (1/1,000,000 USD).
Cost of output tokens in microcents (1/1,000,000 USD).
Total cost in microcents (1/1,000,000 USD).
Conversation/session identifier set by the SDK. null when absent.
End-user identifier set by the SDK. null when absent.
CUID of the simulation that produced this trace. null when not a simulation.
Free-form tags attached at ingest time.
Model identifiers seen across the trace's LLM spans.
LLM-provider identifiers seen across the trace's spans.
OpenTelemetry service.name values seen in the trace.
Identifier of the trace's root span. null when no root span has been ingested.
name attribute of the root span. null when no root span has been ingested.
Number of passed = true annotations attached to this trace.
Number of passed = false annotations attached to this trace.
Free-form metadata attached at ingest time.
System instructions in OpenTelemetry GenAI format — an array of part objects.
Input messages sent into the first LLM span of the trace, in OpenTelemetry GenAI format.
Output messages from the last LLM span of the trace, in OpenTelemetry GenAI format.
Full conversation view for the trace's final turn — the last span's input messages followed by its output messages, in OpenTelemetry GenAI format.