Spans
Query spans across traces
Returns a cursor-paginated page of spans across all traces in the project matching filters (and an optional time range). The span-grain, row-level complement to queryAnalytics with stream: "spans" (which returns aggregates): use this to drill from an aggregate into the individual spans behind it — e.g. every failing search_docs tool span, or the slowest embedding calls.
post/v1/projects/{projectSlug}/spans/query
Path parameters
projectSlugstring required
Project slug (human-readable identifier)
Project slug (human-readable identifier)
Request body
Example request
{
"range": {
"fromIso": "2026-06-23T00:00:00Z",
"toIso": "2026-06-30T00:00:00Z"
}
}Response
Page of spans