MCPcopy
hub / github.com/grafana/tempo / spanCount

Function spanCount

integration/operations/receivers_test.go:197–206  ·  view source on GitHub ↗
(a *tempopb.Trace)

Source from the content-addressed store, hash-verified

195}
196
197func spanCount(a *tempopb.Trace) float64 {
198 count := 0
199 for _, batch := range a.ResourceSpans {
200 for _, spans := range batch.ScopeSpans {
201 count += len(spans.Spans)
202 }
203 }
204
205 return float64(count)
206}

Callers 1

TestReceiversFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected