Ingest spans from traces (v1 legacy)
Ingest spans from traces (v1 legacy)
Legacy trace-ingest endpoint. Accepts spans either as a raw JSON array or as an object with a `data` field containing the span array. Each span uses the same fields as [Create a span](/docs/apis/spans/api-request-logs), plus `trace_unique_id`, `span_unique_id`, and optional `span_parent_id` to build the trace tree. For new integrations, prefer [Create a trace (OTLP)](/docs/apis/traces/create-trace).
Headers
Authorization
Bearer token. Use Bearer YOUR_API_KEY.
Request
This endpoint expects a list of objects or an object.
Array of span objects to ingest as traces.
OR
Wrapper object accepted by the legacy integration endpoint.
Response
Trace spans processed successfully
message
Human-readable ingest summary.
Errors
400
Bad Request Error
401
Unauthorized Error
500
Internal Server Error