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

Function compareScopeSpans

tempodb/encoding/vparquet4/combiner.go:171–176  ·  view source on GitHub ↗
(a, b *ScopeSpans)

Source from the content-addressed store, hash-verified

169}
170
171func compareScopeSpans(a, b *ScopeSpans) bool {
172 if len(a.Spans) > 0 && len(b.Spans) > 0 {
173 return compareSpans(&a.Spans[0], &b.Spans[0])
174 }
175 return false
176}
177
178func compareSpans(a, b *Span) bool {
179 // Sort by start time, then id

Callers 2

SortTraceFunction · 0.70
compareBatchesFunction · 0.70

Calls 1

compareSpansFunction · 0.70

Tested by

no test coverage detected