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

Function combineTraces

tempodb/encoding/vparquet3/combiner.go:10–21  ·  view source on GitHub ↗
(traces ...*Trace)

Source from the content-addressed store, hash-verified

8)
9
10func combineTraces(traces ...*Trace) *Trace {
11 if len(traces) == 1 {
12 return traces[0]
13 }
14
15 c := NewCombiner()
16 for i := 0; i < len(traces); i++ {
17 c.ConsumeWithFinal(traces[i], i == len(traces)-1)
18 }
19 res, _, _ := c.Result() // for now ignore the connected return. see comment in walBlock.Iterator()
20 return res
21}
22
23// Combiner combines multiple partial traces into one, deduping spans based on
24// ID and kind. Note that it is destructive. There are design decisions for

Callers 1

IteratorMethod · 0.70

Calls 3

ConsumeWithFinalMethod · 0.95
ResultMethod · 0.95
NewCombinerFunction · 0.70

Tested by

no test coverage detected