Skip to content

Commit

Permalink
[release-v2.6] Add sum() example to TraceQL docs (#4235)
Browse files Browse the repository at this point in the history
(cherry picked from commit cd3ccef)

Co-authored-by: Kim Nylander <104772500+knylander-grafana@users.noreply.github.com>
  • Loading branch information
github-actions[bot] and knylander-grafana authored Oct 25, 2024
1 parent a8a797c commit fc47073
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions docs/sources/tempo/traceql/_index.md
Original file line number Diff line number Diff line change
Expand Up @@ -416,6 +416,12 @@ For example, find traces that have more than 3 spans with an attribute `http.sta
{ span.http.status_code = 200 } | count() > 3
```

To find spans where the total of a made-up attribute `bytesProcessed` was more than 1 GB:

```
{ } | sum(span.bytesProcessed) > 1000000000
```

## Grouping

TraceQL supports a grouping pipeline operator that can be used to group by arbitrary attributes. This can be useful to
Expand Down

0 comments on commit fc47073

Please sign in to comment.