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

Function compareBatches

tempodb/encoding/vparquet4/combiner.go:164–169  ·  view source on GitHub ↗
(a, b *ResourceSpans)

Source from the content-addressed store, hash-verified

162}
163
164func compareBatches(a, b *ResourceSpans) bool {
165 if len(a.ScopeSpans) > 0 && len(b.ScopeSpans) > 0 {
166 return compareScopeSpans(&a.ScopeSpans[0], &b.ScopeSpans[0])
167 }
168 return false
169}
170
171func compareScopeSpans(a, b *ScopeSpans) bool {
172 if len(a.Spans) > 0 && len(b.Spans) > 0 {

Callers 1

SortTraceFunction · 0.70

Calls 1

compareScopeSpansFunction · 0.70

Tested by

no test coverage detected