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

Method Result

tempodb/encoding/vparquet4/combiner.go:132–144  ·  view source on GitHub ↗

Result returns the final trace, its span count, and a bool indicating whether the trace is a connected graph.

()

Source from the content-addressed store, hash-verified

130
131// Result returns the final trace, its span count, and a bool indicating whether the trace is a connected graph.
132func (c *Combiner) Result() (*Trace, int, bool) {
133 spanCount := -1
134
135 connected := true
136 if c.result != nil && c.combined {
137 // Only if anything combined
138 SortTrace(c.result)
139 c.result, connected = finalizeTrace(c.result)
140 spanCount = len(c.spans)
141 }
142
143 return c.result, spanCount, connected
144}
145
146// SortTrace sorts a parquet *Trace
147func SortTrace(t *Trace) {

Callers 7

testCompactionRoundtripFunction · 0.95
testSameIDCompactionFunction · 0.95
CompactMethod · 0.95
TestCombinerFunction · 0.95
BenchmarkCombineFunction · 0.95
combineTracesFunction · 0.95
FindTraceByIDMethod · 0.95

Calls 2

SortTraceFunction · 0.70
finalizeTraceFunction · 0.70

Tested by 4

testCompactionRoundtripFunction · 0.76
testSameIDCompactionFunction · 0.76
TestCombinerFunction · 0.76
BenchmarkCombineFunction · 0.76