Engine API
Get Trace Spans
Returns all spans for a specific trace
GET
Get Trace Spans
Returns the flat list of spans for a trace, ordered by timestamp. The frontend builds the parent-child tree from
parent_span_id.
Path Parameters
string
required
The OpenTelemetry trace ID.
Query Parameters
string
Comma-separated list of additional trace IDs to merge in (used for OpenClaw multi-trace sessions). All spans are returned sorted by
start_ns.Response
Array of span detail objects:string
Unique span identifier
string
Parent span ID. Empty string for root spans.
string
Operation name
string
OTel span kind:
INTERNAL, SERVER, CLIENT, etc.string
Service that emitted this span
integer
Start time as Unix nanoseconds
integer
Duration in nanoseconds
string
STATUS_CODE_OK, STATUS_CODE_ERROR, or STATUS_CODE_UNSETstring
Error message if status is ERROR
object
Full
SpanAttributes map — all tracectrl.*, openinference.*, input.*, output.* attributesobject
Resource-level attributes (service name, SDK version, etc.)

