Skip to main content
POST /v1/traces/find returns traces, each with its totals, in pages. Right: read.

Body

All set conditions must hold.
object
default:"{}"
A trace filter: fields of the whole trace, ranges of its totals, and and, or, not.
object
A span filter that the root span meets.
object[]
Span filters. For each entry, some span of the trace meets it. Different spans may meet different entries.
object[]
Score filters. For each entry, some score of the trace meets it.
string
default:"newest"
"newest" or "oldest", by the start of the trace. Ties: traceId.
integer
default:"50"
At most 10,000. 0 returns only the count.
string
The nextCursor of the page before (Lists and cursors).
integer
Adds inputPreview and outputPreview to each trace: the first previewChars characters of the input and output of the root span.
root, anySpan and anyScore mean the same as the fields of the trace filter with these names. Use them here for a query with no or and no not.

Answer

integer
Every matching trace, not only the ones of this page.
object[]
The traces of this page.
string | null
The cursor of the next page. null on the last page.

Questions about whole traces

A guide with real trace queries and answers.

Read a trace

Every span of one trace.