Spans
Query spans across traces
Changed onReturns 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
Request
- Base URLhttps://api.latitude.so
- AuthHTTP bearer
Path parameters
projectSlugstring required
Project slug (human-readable identifier)
Project slug (human-readable identifier). The CLI can also read this from the LATITUDE_PROJECT_SLUG environment variable.
Request body
Example request
{
"range": {
"fromIso": "2026-06-23T00:00:00Z",
"toIso": "2026-06-30T00:00:00Z"
}
}Response
Page of spans
Changes
- info
added the required property
//to the response with the status
- info
- breaking
added to the
request propertyallOflist - warning
removed from the
request propertyallOflist
- breaking