Spans

spans

Methods

Create Span ->
post/v5/spans

Create Span

Get Span ->
get/v5/spans/{span_id}

Get Span

Update 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

Search And List Spans -> CursorPage<>
post/v5/spans/search

Search and list spans

query Parameters
ending_before: string
Optional
from_ts: string
Optional
(format: date-time)

The starting (oldest) timestamp in ISO format.

limit: number
Optional
(maximum: 1000, minimum: 1, default: 100)
sort_by: string
Optional
sort_order:
Optional
(default: "asc")
"asc"
"desc"
starting_after: string
Optional
to_ts: string
Optional
(format: date-time)

The ending (most recent) timestamp in ISO format.

Response fields
has_more: boolean

Whether there are more items left to be fetched.

items: Array<>
total: number

The total of items that match the query. This is greater than or equal to the number of items returned.

limit: number
Optional
(default: 100)

The maximum number of items to return.

object: "list"
Optional
(default: "list")
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...