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
The OpenTelemetry trace ID.
Query Parameters
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:Unique span identifier
Parent span ID. Empty string for root spans.
Operation name
OTel span kind:
INTERNAL, SERVER, CLIENT, etc.Service that emitted this span
Start time as Unix nanoseconds
Duration in nanoseconds
STATUS_CODE_OK, STATUS_CODE_ERROR, or STATUS_CODE_UNSETError message if status is ERROR
Full
SpanAttributes map — all tracectrl.*, openinference.*, input.*, output.* attributesResource-level attributes (service name, SDK version, etc.)
Get Trace Spans

