Skip to main content
GET
/
traces
/
{trace_id}
/
spans
List trace spans
curl --request GET \
  --url https://api.example.com/traces/{trace_id}/spans \
  --header 'Authorization: Bearer <token>'
[
  {
    "otel_span_id": "<string>",
    "parent_otel_span_id": "<string>",
    "name": "<string>",
    "kind": "<string>",
    "start_time_ns": "<string>",
    "end_time_ns": "<string>",
    "duration_ms": 123,
    "status_code": "<string>",
    "status_description": "<string>",
    "input_tokens": 123,
    "output_tokens": 123,
    "model_name": "<string>",
    "tps": 123,
    "attributes": {},
    "events": "<unknown>"
  }
]

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

trace_id
string
required

Response

Trace spans

otel_span_id
string
required
parent_otel_span_id
string | null
required
name
string
required
kind
string | null
required
start_time_ns
string | null
required
end_time_ns
string | null
required
duration_ms
number | null
required
status_code
string | null
required
status_description
string | null
required
input_tokens
number | null
required
output_tokens
number | null
required
model_name
string | null
required
tps
number | null
required
attributes
object
events
any