Skip to main content
POST /v1/search returns the ids of the spans that match a filter, in pages. Right: read.

Body

object
default:"{}"
A span filter. Left out: every span.
string
default:"newest"
"newest" or "oldest", by startedAt. Ties: spanId, then traceId.
integer
default:"50"
At most 10,000.
string
The nextCursor of the page before (Lists and cursors).
integer
Adds inputPreview and outputPreview to each row: the first previewChars characters of the span’s input and output. The server reads the stored span of each row for this. Left out: rows have no such fields.

Answer

object[]
The matching spans of this page.
string | null
The cursor of the next page. null on the last page.
To read a whole span, use GET /v1/traces/:id/spans/:spanId.

Count spans

Only the number of matches.

Find text

A guide to words, phrases and pieces of words.