Tracing
For instructions on how to authenticate to use this endpoint, see API overview.
Endpoints
POST | |
POST | |
POST | |
GET | |
POST | |
GET | |
GET | |
POST | |
GET | |
PATCH | |
DELETE |
Create tracing spans sparkline
Required API key scopes
tracing:readRequest parameters
- query
Response
Example request
POST /api /projects /:project_id /tracing /spans /sparklineExample response
Status 200
RESPONSE
Create tracing spans symbol stats
Required API key scopes
tracing:readRequest parameters
- query
Response
Example request
POST /api /projects /:project_id /tracing /spans /symbol-statsExample response
Status 200
RESPONSE
Create tracing spans trace
Required API key scopes
tracing:readPath parameters
- trace_idstring
Request parameters
- dateRange
- excludeAttributesbooleanDefault:
false - offsetinteger
Response
Example request
POST /api /projects /:project_id /tracing /spans /trace /:trace_idExample response
Status 200
RESPONSE
Retrieve tracing spans trace ai events
List the LLM analytics events whose $ai_trace_id is this trace's id, so the waterfall
can show each model call inline with the spans.
The spans and the AI events live on different ClickHouse clusters, so one query cannot join them; this returns the events half and the caller places them by time.
Required API key scopes
tracing:readllm_analytics:readPath parameters
- trace_idstring
Response
Example request
GET /api /projects /:project_id /tracing /spans /trace /:trace_id /ai_eventsExample response
Status 200
RESPONSE
Create tracing spans tree
Required API key scopes
tracing:readRequest parameters
- query
Response
Example request
POST /api /projects /:project_id /tracing /spans /treeExample response
Status 200
RESPONSE
Retrieve tracing spans values
Required API key scopes
tracing:readQuery parameters
- attribute_typestringOne of:
"span""span_attribute""span_resource_attribute" - dateRangestring
- date_fromstring
- date_tostring
- keystring
- limitinteger
- offsetinteger
- valuestring
Example request
GET /api /projects /:project_id /tracing /spans /valuesExample response
Status 200 No response body
List all tracing views
Required API key scopes
tracing:readQuery parameters
- limitinteger
- offsetinteger
Response
Example request
GET /api /projects /:project_id /tracing /viewsExample response
Status 200
RESPONSE
Create tracing views
Required API key scopes
tracing:writeRequest parameters
- namestring
- filtersobject
- pinnedboolean
Response
Example request
POST /api /projects /:project_id /tracing /viewsExample response
Status 201
RESPONSE
Retrieve tracing views
Required API key scopes
tracing:readPath parameters
- short_idstring
Response
Example request
GET /api /projects /:project_id /tracing /views /:short_idExample response
Status 200
RESPONSE
Update tracing views
Required API key scopes
tracing:writePath parameters
- short_idstring
Request parameters
- namestring
- filtersobject
- pinnedboolean
Response
Example request
PATCH /api /projects /:project_id /tracing /views /:short_idExample response
Status 200
RESPONSE
Delete tracing views
Required API key scopes
tracing:writePath parameters
- short_idstring
Example request
DELETE /api /projects /:project_id /tracing /views /:short_id










