Tracing
For instructions on how to authenticate to use this endpoint, see API overview.
Endpoints
GET | |
POST | |
GET | |
PATCH | |
DELETE | |
POST | |
POST | |
POST | |
POST | |
GET | |
POST | |
POST | |
POST | |
GET | |
POST | |
POST | |
POST | |
GET | |
POST |
List all tracing retention rules
Span retention rules.
Shares the logs implementation over its own model. Only the model, the access-control scope and the feature flag differ.
Required API key scopes
tracing:readQuery parameters
- limitinteger
- offsetinteger
Response
Example request
GET /api /projects /:project_id /tracing /retention_rulesExample response
Status 200
Create tracing retention rules
Span retention rules.
Shares the logs implementation over its own model. Only the model, the access-control scope and the feature flag differ.
Required API key scopes
tracing:writeRequest parameters
- namestring
- enabledbooleanDefault:
false - priorityinteger | null
- config
Response
Example request
POST /api /projects /:project_id /tracing /retention_rulesExample response
Status 201
Retrieve tracing retention rules
Span retention rules.
Shares the logs implementation over its own model. Only the model, the access-control scope and the feature flag differ.
Required API key scopes
tracing:readPath parameters
- idstring
Response
Example request
GET /api /projects /:project_id /tracing /retention_rules /:idExample response
Status 200
Update tracing retention rules
Span retention rules.
Shares the logs implementation over its own model. Only the model, the access-control scope and the feature flag differ.
Required API key scopes
tracing:writePath parameters
- idstring
Request parameters
- namestring
- enabledbooleanDefault:
false - priorityinteger | null
- config
Response
Example request
PATCH /api /projects /:project_id /tracing /retention_rules /:idExample response
Status 200
Delete tracing retention rules
Span retention rules.
Shares the logs implementation over its own model. Only the model, the access-control scope and the feature flag differ.
Required API key scopes
tracing:writePath parameters
- idstring
Example request
DELETE /api /projects /:project_id /tracing /retention_rules /:idExample response
Status 204 No response body
Create tracing retention rules reorder
Atomically reassign priorities so the given ID order maps to ascending priorities (0..n-1).
Query parameters
- limitinteger
- offsetinteger
Request parameters
- ordered_idsarray
Response
Example request
POST /api /projects /:project_id /tracing /retention_rules /reorderExample response
Status 200
Create tracing retention rules suggest name
Suggest a human-readable name for a retention rule from its retention tier and filter group. Used by the create form as an auto-suggest; nothing is persisted. Returns an empty name when a suggestion can't be generated.
Request parameters
- retention_daysinteger
- filter_group
Response
Example request
POST /api /projects /:project_id /tracing /retention_rules /suggest_nameExample response
Status 200
Create tracing spans aggregate
Required API key scopes
tracing:readRequest parameters
- query
Response
Example request
POST /api /projects /:project_id /tracing /spans /aggregateExample response
Status 200
Create tracing spans attribute breakdown
Required API key scopes
tracing:readRequest parameters
- query
Response
Example request
POST /api /projects /:project_id /tracing /spans /attribute-breakdownExample response
Status 200
Retrieve tracing spans attributes
Required API key scopes
tracing:readQuery parameters
- attribute_typestringOne of:
"span_attribute""span_resource_attribute" - limitinteger
- offsetinteger
- searchstring
- search_valuesbooleanDefault:
false
Response
Example request
GET /api /projects /:project_id /tracing /spans /attributesExample response
Status 200
Create tracing spans count
Required API key scopes
tracing:readRequest parameters
- query
Response
Example request
POST /api /projects /:project_id /tracing /spans /countExample response
Status 200
Create tracing spans duration histogram
Required API key scopes
tracing:readRequest parameters
- query
Response
Example request
POST /api /projects /:project_id /tracing /spans /duration-histogramExample response
Status 200
Create tracing spans error counts
Count the exceptions the spans in view hit, by trace, by span and by session, for the span list's error badges.
A caller asks about the id kinds it has, and each kind is a separate lookup.
Required API key scopes
tracing:readerror_tracking:readRequest parameters
- traceIdsarray
- spanIdsarray
- sessionIdsarray
- dateFromstring
- dateTostring
Response
Example request
POST /api /projects /:project_id /tracing /spans /error-countsExample response
Status 200
Retrieve tracing spans has spans
Required API key scopes
tracing:readResponse
Example request
GET /api /projects /:project_id /tracing /spans /has_spansExample response
Status 200
Create tracing spans impact
Required API key scopes
tracing:readRequest parameters
- query
Response
Example request
POST /api /projects /:project_id /tracing /spans /impactExample response
Status 200
Create tracing spans latency heatmap
Required API key scopes
tracing:readRequest parameters
- query
Response
Example request
POST /api /projects /:project_id /tracing /spans /latency-heatmapExample response
Status 200
Create tracing spans query
Required API key scopes
tracing:readRequest parameters
- query
Response
Example request
POST /api /projects /:project_id /tracing /spans /queryExample response
Status 200
Retrieve tracing spans service names
Required API key scopes
tracing:readQuery parameters
- dateRangestring
- searchstring
Response
Example request
GET /api /projects /:project_id /tracing /spans /service-namesExample response
Status 200
Create tracing spans sparkline
Required API key scopes
tracing:readRequest parameters
- query
Response
Example request
POST /api /projects /:project_id /tracing /spans /sparkline