Get trace span
Returns one span by id, including the LLM conversation (system instructions, input messages, output messages), tool data (definitions, call id, input, output), and the full OpenTelemetry payload (attributes, resource, events, links) that's excluded from the lighter list shape.
Path parameters
Project slug (human-readable identifier)
Project slug (human-readable identifier)
32-character trace identifier.
32-character trace identifier.
16-character span identifier.
16-character span identifier.
Response
Span detail
Organization that owns this span.
Project this span belongs to.
Identifier of the trace this span belongs to.
Stable span identifier within the trace.
Identifier of the parent span. null for root spans.
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 span. null when not a simulation.
Latitude API key used to ingest the span. null when ingested without an API key.
ISO-8601 timestamp at which the span started.
ISO-8601 timestamp at which the span ended.
Span name (e.g. the entry-point function or route).
OpenTelemetry service.name of the emitting service.
OpenTelemetry span kind.
OpenTelemetry span status code.
OpenTelemetry status message. Empty when not set.
OpenTelemetry trace flags bitfield.
OpenTelemetry trace state (vendor-specific propagation). Empty when not set.
Error class/type label when the span errored. null for successful spans.
Free-form tags attached at ingest time.
GenAI operation category (e.g. "chat", "embeddings", "execute_tool", "invoke_agent") or a custom string for non-GenAI spans.
LLM provider id. null for non-LLM spans.
Model id as requested. null for non-LLM spans.
Model id reported by the provider's response. null for non-LLM spans.
Input tokens consumed by this span.
Output tokens produced by this span.
Tokens served from the provider's prompt cache.
Tokens written to the provider's prompt cache.
Reasoning tokens reported by the model.
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).
true when the cost was derived from public pricing tables instead of the provider's bill.
Nanoseconds from the start of the span to its first emitted token. 0 if not measured.
true when the span was produced by a streaming LLM call.
Response identifier returned by the LLM. null when the provider didn't return one.
Per-choice finish reasons reported by the LLM provider.
OpenTelemetry instrumentation scope name. Empty when not set.
OpenTelemetry instrumentation scope version. Empty when not set.
Per-span retention override in days. Omitted when the project default applies.
ISO-8601 timestamp at which Latitude received this span.
Free-form metadata attached at ingest time.
System instructions in OpenTelemetry GenAI format — an array of part objects.
Input messages sent into this LLM span, in OpenTelemetry GenAI format.
Output messages returned by this LLM span, in OpenTelemetry GenAI format.
Tool-call id this span answers. Empty when the span isn't an execute_tool span.
Name of the executed tool. Empty when the span isn't an execute_tool span.
Stringified arguments passed to the tool. Empty when the span isn't an execute_tool span.
Stringified tool output. Empty when the span isn't an execute_tool span.
OpenTelemetry attributes with string values.
OpenTelemetry attributes with integer values.
OpenTelemetry attributes with floating-point values.
OpenTelemetry attributes with boolean values.
OpenTelemetry resource attributes captured at ingest.
JSON-encoded OpenTelemetry events array. Empty when the span has no events.
JSON-encoded OpenTelemetry span-links array. Empty when the span has no links.