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

Method Result

tempodb/encoding/vparquet5/combiner.go:133–145  ·  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

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

Callers 5

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 2

TestCombinerFunction · 0.76
BenchmarkCombineFunction · 0.76