POST
/
v5
/
spans
/
export
Export spans
curl --request POST \
  --url https://api.egp.scale.com/v5/spans/export \
  --header 'Content-Type: application/json' \
  --header 'x-api-key: <api-key>' \
  --data '{
  "parents_only": true,
  "span_ids": [
    "<string>"
  ],
  "trace_ids": [
    "<string>"
  ],
  "excluded_span_ids": [
    "<string>"
  ],
  "excluded_trace_ids": [
    "<string>"
  ],
  "span_id": "<string>",
  "trace_id": "<string>",
  "group_id": "<string>",
  "names": [
    "<string>"
  ],
  "statuses": [
    "SUCCESS"
  ],
  "types": [
    "TEXT_INPUT"
  ],
  "extra_metadata": {},
  "export_method": "direct"
}'
{
  "filename": "<string>",
  "signed_url": "<string>"
}

Authorizations

x-api-key
string
header
required

Headers

x-selected-account-id
string | null

Query Parameters

from_ts
string | null

The starting (oldest) timestamp in ISO format.

to_ts
string | null

The ending (most recent) timestamp in ISO format.

Body

application/json

Response

200
application/json

Successful Response

Response model for exporting spans. This class represents the response when users export span data. It contains either a signed URL to download the exported data from object storage, or the actual content bytes when direct download is used (in environments where object storage is not configured).