v1

latestOpenAPI 3.1.0MIT2026-07-1393128198.4 KB
Querying

List traces

List individual traces using correlated sub-queries. Use this to find specific traces matching complex multi-span criteria. Requires parallel arrays: query[], alias[], system[] with matching lengths. One alias must be 'root' to identify the root span query. Additional sub-queries filter traces where child spans match specific criteria. Systems: spans:all, httpserver:all, db:postgresql, log:error, etc. Returns root spans for matching traces sorted by time (DESC by default). Use list_trace_groups instead when you need aggregated trace metrics. Use list_spans instead when you don't need cross-span trace correlation. Documentation: https://uptrace.dev/features/querying/spans

get/internal/v1/traces/{project_id}

Path parameters

project_idinteger required

Uptrace project ID.

Query parameters

time_startstring date-time required

RFC3339 timestamp.

Start time (inclusive) as RFC3339 timestamp.

time_endstring date-time required

RFC3339 timestamp.

End time (exclusive) as RFC3339 timestamp.

querystring[]

UQL query for each sub-query. Must have the same count as alias and system. Can be repeated.

aliasstring[]

Alias for each sub-query. One alias must be 'root'. Can be repeated.

systemstring[]

System for each sub-query (e.g., spans:all, log:error). Can be repeated.

sort_bystring[]

Column names to sort by. Can be repeated for multi-column sort. Defaults to time.

sort_dirSortDirection[]

Sort direction for each sort_by column. Must match sort_by count. Defaults to DESC.

limitinteger

Limit number of results.

Response

List of matching traces.

countinteger required

Total count of matching traces.

queryobject[]

Parsed query parts with error state.

searchobject[]

Applied search matchers.

whereAttrsobject

Map of WHERE attribute names to their matched values.