Hanzo
OpenapiO11y

Lists the caller org's recent traces — one row per trace with its span count…

Lists the caller org's recent traces — one row per trace with its span count and wall-clock duration, most recently active first.

GET /v1/o11y/traces

Addresshttps://api.hanzo.ai/v1/o11y/traces
MethodGET
Operationget_o11y_traces
AuthAuthorization: Bearer $HANZO_API_KEY

Lists the caller org's recent traces — one row per trace with its span count and wall-clock duration, most recently active first. This is the trace SEARCH: it is where a trace id comes from, and the spans behind any row are then read from GET /v1/o11y/traces/{traceId}. Every row belongs to the caller's own org — the tenant is the validated principal, never an input, and there is no administrator widening, because a trace list is a tenant's records rather than a rollup over them. An unreachable telemetry store answers 503 rather than an empty page, because "no traces" and "cannot see the traces" are different facts and only one of them is about the caller's system.

Request

3 fields.

FieldInTypeRequiredDescription
rangequeryintegerRange is the window in seconds, counted back from now over each trace's last activity.
limitqueryintegerLimit is how many traces to return.
minDurationMsqueryintegerMinDurationMs keeps only traces that lasted at least this many milliseconds.

Response

StatusBodyMeaning
200o11y.tracesOutok

200 body — 9 fields.

FieldInTypeAlwaysDescription
countbodyintegerCount is how many traces this page carries.
limitbodyintegerLimit is the page cap actually applied, after clamping.
sinceSecbodyintegerSinceSec is the window actually read, in seconds, after clamping.
tracesbodyo11y.traceRow[]Traces are the caller org's traces, most recently active first.
traces[].durationMsbodynumberDurationMs is End minus Start in milliseconds: the trace's wall clock, not the sum of its spans, which double-counts everything concurrent.
traces[].endbodystringEnd is the latest span end, RFC3339 with nanoseconds, in UTC.
traces[].numSpansbodyintegerNumSpans is how many spans the trace carries.
traces[].startbodystringStart is the earliest span start, RFC3339 with nanoseconds, in UTC.
traces[].traceIdbodystringTraceID is the trace's id — the {traceId} of the detail read.

Failure carries the platform error shape — see Errors.

Examples

hanzo o11y traces list

O11y API · All Hanzo APIs · Interactive reference

How is this guide?

On this page