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

Function equalTraces

cmd/tempo-vulture/main.go:776–781  ·  view source on GitHub ↗
(a, b *tempopb.Trace)

Source from the content-addressed store, hash-verified

774}
775
776func equalTraces(a, b *tempopb.Trace) bool {
777 trace.SortTraceAndAttributes(a)
778 trace.SortTraceAndAttributes(b)
779
780 return reflect.DeepEqual(a, b)
781}
782
783func hasMissingSpans(t *tempopb.Trace) bool {
784 // check that all parent spans exist in the trace

Callers 3

TestResponseFixtureFunction · 0.85
TestEqualTracesFunction · 0.85
queryTraceFunction · 0.85

Calls 1

SortTraceAndAttributesFunction · 0.92

Tested by 2

TestResponseFixtureFunction · 0.68
TestEqualTracesFunction · 0.68