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

Method Result

tempodb/encoding/vparquet3/combiner.go:130–142  ·  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

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

Tested by 2

TestCombinerFunction · 0.76
BenchmarkCombineFunction · 0.76