Skip to content

observe_traces_search

Search the traces of the current product, newest first.

Tool

Search the traces of the current product, newest first.

Search the traces of the current product, newest first. One row per trace: its root span, how long the whole trace took, how many spans it has and whether any of them failed. Filters are structured; there is no SQL surface. Page with nextCursor.

HTTP
GET /observe/traces/search

Arguments

NameTypeRequiredDescription
tostringNewest span start to include, ISO 8601
fromstringOldest span start to include, ISO 8601
namestringOnly traces one of whose spans carries this exact span name, e.g. "GET /users"
limitintegerHow many traces to return, 1-1000, default 100
cursorstringThe nextCursor of the previous page; omit for the first page
statusstringOnly traces in this state: "error" when any span failed, "ok" when none did and at least one reported OK, "unset" when no span reported a status
servicestringOnly traces one of whose spans belongs to this service, e.g. "api"
traceIdstringOnly this trace, by its 32-character hex id
environmentstringOnly traces of this environment, e.g. "production"
maxDurationMsnumberOnly traces that took at most this many milliseconds end to end
minDurationMsnumberOnly traces that took at least this many milliseconds end to end

Response

FieldTypeAlwaysDescription
tracesarrayThe matching traces, newest first
nextCursorstringPass back as cursor for the next page; null when the last page was reached

Try it

Search the traces of the current product, newest first.

When to use

Search the traces of the current product, newest first. One row per trace: its root span, how long the whole trace took, how many spans it has and whether any of them failed. Filters are structured; there is no SQL surface. Page with nextCursor.

Example

Ask your agent something like this:

Search the traces of the current product, newest first.

The agent will invoke observe_traces_search with these arguments:

{}

Esc

Start typing to search the docs.

navigateselect