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

Function compareLinks

pkg/model/trace/sort.go:104–110  ·  view source on GitHub ↗
(a, b *v1.Span_Link)

Source from the content-addressed store, hash-verified

102}
103
104func compareLinks(a, b *v1.Span_Link) bool {
105 if bytes.Equal(a.TraceId, b.TraceId) {
106 return bytes.Compare(a.SpanId, b.SpanId) == -1
107 }
108
109 return bytes.Compare(a.TraceId, b.TraceId) == -1
110}

Callers 1

SortTraceFunction · 0.85

Calls 2

EqualMethod · 0.45
CompareMethod · 0.45

Tested by

no test coverage detected