List spans
Changed onReturns a paginated list of spans.
Spans are ordered by start_time from newest to oldest. Trace and span identifiers give spans with the same start time a stable order. Start and end time bounds are inclusive.
Use the returned cursor with the same project, filter, column selection, and time window. You can change the page limit. If the server rejects a cursor after an endpoint update, restart the page walk without it.
Adjacent inclusive polling windows overlap at their boundary. Remove duplicate trace and span identifier pairs. Use an overlap between polling windows to include data that arrives late. Cursor pagination keeps one time window fixed, but it is not a snapshot of changing data.
Spans that arrive long after they started
start_time is the time your application recorded for the span. Arize also stores the time it received the span. This endpoint searches received-time storage for a few hours on either side of the start_time range you ask for, which is how the Arize UI reads the same data.
A span that reached Arize much later than it started can therefore fall outside that search. Backfilled or replayed traces are the common case. Widen start_time and end_time to cover when the data was sent, not only when it was recorded, and those spans come back.
<Note>This endpoint is in beta, read more here.</Note>
Request
- Base URLhttps://api.arize.com
- URLhttps://api.arize.com/v2/spans
- AuthHTTP bearer
Query parameters
Maximum items to return. Defaults to 50 if omitted; maximum is 500.
Opaque pagination cursor returned from a previous response (pagination.next_cursor). Treat it as an unreadable token; do not attempt to parse or construct it.
Request body
Response
Returns a list of spans
Example response
{
"spans": [
{
"annotations": [
{
"annotator": {
"email": "user@example.com"
}
}
],
"trace_annotations": [
{
"annotator": {
"email": "user@example.com"
}
}
]
}
]
}Changes
- info
added the optional property
////to the response with the status
- info
- info
added the new optional request property
- info