Skip to main content
POST
Ingest a trace

Authorizations

Authorization
string
header
required

Project tracing key, from Settings → Tracing keys. Authorization: Bearer tk_live_.... The word Bearer is case-sensitive.

Headers

Idempotency-Key
string

Optional. Scoped to the project. A repeated key returns the first successful response for that key and stores nothing new. Use a different key for each distinct batch.

Body

application/json
trace_id
string
required

Your id for the run. Unique per project; reusing it adds to the same trace.

Required string length: 1 - 128
spans
object[]
required
Required array length: 1 - 500 elements
root_name
string
default:""

Label in the Traces list. Overwritten by every batch; resend it each time.

Maximum string length: 512
status
enum<string>

Affects only this response's status. The stored status is derived from spans.

Available options:
OK,
ERROR
environment
string
default:production
Maximum string length: 64
source
enum<string>
default:live
Available options:
live,
simulation
started_at
string<date-time>

Optional. Restated as the earliest span start after ingest.

tags
string[]

Replaces the trace's tags on every batch.

Maximum string length: 128

Response

Trace stored.

data
object
required