Skip to content

Commit

Permalink
Add sum() example to TraceQL docs (#4234)
Browse files Browse the repository at this point in the history
  • Loading branch information
knylander-grafana authored Oct 24, 2024
1 parent c8412e2 commit cd3ccef
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 @@ -417,6 +417,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 cd3ccef

Please sign in to comment.