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

Function compareSpans

tempodb/encoding/vparquet4/combiner.go:178–185  ·  view source on GitHub ↗
(a, b *Span)

Source from the content-addressed store, hash-verified

176}
177
178func compareSpans(a, b *Span) bool {
179 // Sort by start time, then id
180 if a.StartTimeUnixNano == b.StartTimeUnixNano {
181 return bytes.Compare(a.SpanID, b.SpanID) == -1
182 }
183
184 return a.StartTimeUnixNano < b.StartTimeUnixNano
185}

Callers 2

SortTraceFunction · 0.70
compareScopeSpansFunction · 0.70

Calls 1

CompareMethod · 0.45

Tested by

no test coverage detected