List trace groups
Aggregate traces into groups using correlated sub-queries. Use this to find trace patterns and get aggregated trace metrics. 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 grouped rows with dynamic columns. Use list_traces instead when you need individual trace details. Use list_span_groups instead when you don't need cross-span trace correlation. Documentation: https://uptrace.dev/features/querying/spans
Request
- Base URLhttps://api.uptrace.dev
- Auth
- HTTP bearer
- or API key in query parameter auth_token
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Path parameters
Uptrace project ID.
Query parameters
RFC3339 timestamp.
Start time (inclusive) as RFC3339 timestamp.
RFC3339 timestamp.
End time (exclusive) as RFC3339 timestamp.
UQL query for each sub-query. Must have the same count as alias and system. Can be repeated.
Alias for each sub-query. One alias must be 'root'. Can be repeated.
System for each sub-query (e.g., spans:all, log:error). Can be repeated.
Column names to sort by. Can be repeated for multi-column sort.
Sort direction for each sort_by column. Must match sort_by count. Defaults to DESC.
Limit number of results.
Response
Trace groups result.
Changes
No recorded changes to this operation across all 1 revision of this API.