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

Function compareBatches

pkg/model/trace/sort.go:73–78  ·  view source on GitHub ↗
(a, b *v1.ResourceSpans)

Source from the content-addressed store, hash-verified

71}
72
73func compareBatches(a, b *v1.ResourceSpans) bool {
74 if len(a.ScopeSpans) > 0 && len(b.ScopeSpans) > 0 {
75 return compareScopeSpans(a.ScopeSpans[0], b.ScopeSpans[0])
76 }
77 return false
78}
79
80func compareScopeSpans(a, b *v1.ScopeSpans) bool {
81 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