List groups
Aggregate spans into groups using UQL queries. Use this to get aggregated metrics like request count, error rate, or latency percentiles. Aggregate functions: count(), avg(), sum(), min(), max(), p50(), p75(), p90(), p99(), uniq(), apdex(). Supports GROUP BY (e.g. group by service_name), HAVING (e.g. having p50(_dur_ms) > 100ms), WHERE filters, full-text search, system filtering (e.g. httpserver:all, db:postgresql), and duration filtering. Example query: 'perMin(count()) | group by host_name'. Returns grouped rows with dynamic columns based on the query. Use list_spans instead when you need individual span details. Use timeseries instead when you need time-bucketed data for charts. Documentation: https://uptrace.dev/features/querying/spans
Path parameters
Uptrace project ID.
Query parameters
RFC3339 timestamp.
Start time (inclusive) as RFC3339 timestamp.
RFC3339 timestamp.
End time (exclusive) as RFC3339 timestamp.
UQL aggregation query (e.g., perMin(count()) | group by host_name).
Additional WHERE clause appended to the query.
Full-text search for spans containing the given text.
Attribute names to search within when using search. Can be repeated for multiple attributes.
Filter by system (e.g., log:error, db:postgresql). Can be repeated for multiple systems.
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.
Duration greater than or equal to N (milliseconds).
Duration less than N (milliseconds).
Limit number of results.
Response
Aggregated span groups.