Files
Suraj NathandGitHub 7d7d4e1975 Add support for topk and bottomk functions for TraceQL metrics (#4646)
Add support for topk and bottomk functions on top of TraceQL Metrics.

you can now write TraceQL Queries like {} | rate() by (span.client_ip) | topk(10) or {} | rate() by (span.client_ip) | bottomk(10), and only get top or bottomk series from the underlaying TraceQL Metrics Queries.

topk and bottomk behaves like Prometheus topk and bottomk functions.
2025-04-10 23:08:24 +05:30
..