Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
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
104
func
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
SortTrace
Function · 0.85
Calls
2
Equal
Method · 0.45
Compare
Method · 0.45
Tested by
no test coverage detected