Spans
spans
Methods
post/v5/spans
Create Span
get/v5/spans/{span_id}
Get Span
patch/v5/spans/{span_id}
Update Span
Create Spans In Batch -> { items, object }
post/v5/spans/batch
Create Spans in Batch
Upsert Spans In Batch -> { items, object }
put/v5/spans/batch
Upsert Spans in Batch
post/v5/spans/search
Search and list spans
query Parameters
ending_before: string
Optional
from_ts: string
(format: date-time)Optional
The starting (oldest) timestamp in ISO format.
limit: number
(maximum: 1000, minimum: 1, default: 100)Optional
sort_by: string
Optional
sort_order:
(default: "asc")Optional
"asc"
"desc"
starting_after: string
Optional
to_ts: string
(format: date-time)Optional
The ending (most recent) timestamp in ISO format.
Response fields
has_more: boolean
Whether there are more items left to be fetched.
total: number
The total of items that match the query. This is greater than or equal to the number of items returned.
limit: number
(default: 100)Optional
The maximum number of items to return.
object: "list"
(default: "list")Optional
Request example
200Example
Domain types
Span = { id, account_id, name, 14 more... }
SpanStatus = "SUCCESS" | "ERROR" | "CANCELED"
SpanType = "TEXT_INPUT" | "TEXT_OUTPUT" | "COMPLETION_INPUT" | 22 more...