diff --git a/docs/sources/tempo/traceql/_index.md b/docs/sources/tempo/traceql/_index.md index 47bc28b5c19..a904f3ece38 100644 --- a/docs/sources/tempo/traceql/_index.md +++ b/docs/sources/tempo/traceql/_index.md @@ -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