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

Method Result

pkg/model/trace/combine.go:151–161  ·  view source on GitHub ↗

Result returns the final trace and span count.

()

Source from the content-addressed store, hash-verified

149
150// Result returns the final trace and span count.
151func (c *Combiner) Result() (*tempopb.Trace, int) {
152 spanCount := -1
153
154 if c.result != nil && c.combined {
155 // Only if anything combined
156 SortTrace(c.result)
157 spanCount = len(c.spans)
158 }
159
160 return c.result, spanCount
161}
162
163// Returns true if the combined trace is a partial one if partal trace is enabled
164func (c *Combiner) IsPartialTrace() bool {

Callers 8

NewTraceByIDV2Function · 0.95
FindTraceByIDMethod · 0.95
PrepareForReadMethod · 0.95
CombineMethod · 0.95
PrepareForReadMethod · 0.95
CombineMethod · 0.95
TestCombineProtoTotalsFunction · 0.95
BenchmarkCombineFunction · 0.95

Calls 1

SortTraceFunction · 0.70

Tested by 2

TestCombineProtoTotalsFunction · 0.76
BenchmarkCombineFunction · 0.76