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

Method dedupe

modules/frontend/combiner/trace_by_id_deduper.go:29–40  ·  view source on GitHub ↗
(trace *tempopb.Trace)

Source from the content-addressed store, hash-verified

27}
28
29func (s *spanIDDeduper) dedupe(trace *tempopb.Trace) *tempopb.Trace {
30 if trace == nil {
31 return nil
32 }
33
34 s.trace = trace
35
36 s.groupSpansByID()
37 s.dedupeSpanIDs()
38
39 return s.trace
40}
41
42// groupSpansByID groups spans with the same ID returning a map id -> []Span
43func (s *spanIDDeduper) groupSpansByID() {

Callers 4

TestDedupeSpanIDsFunction · 0.95
benchmarkDeduperFunction · 0.80
HTTPFinalMethod · 0.80
NewTraceByIDV2Function · 0.80

Calls 2

groupSpansByIDMethod · 0.95
dedupeSpanIDsMethod · 0.95

Tested by 2

TestDedupeSpanIDsFunction · 0.76
benchmarkDeduperFunction · 0.64