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

Method DedupedSpans

modules/blockbuilder/live_traces_iter.go:178–186  ·  view source on GitHub ↗

DedupedSpans returns the total number of duplicate spans that were removed across all traces. Returns an error if the iterator has not been fully exhausted.

()

Source from the content-addressed store, hash-verified

176// DedupedSpans returns the total number of duplicate spans that were removed
177// across all traces. Returns an error if the iterator has not been fully exhausted.
178func (i *liveTracesIter) DedupedSpans() (uint32, error) {
179 i.mtx.Lock()
180 defer i.mtx.Unlock()
181
182 if !i.exhausted {
183 return 0, errors.New("iterator must be exhausted before calling DedupedSpans")
184 }
185 return i.dedupedSpans, nil
186}
187
188func (i *liveTracesIter) Close() {
189 i.cancel()

Callers 5

CompactMethod · 0.80
CompactMethod · 0.80
FlushMethod · 0.80

Calls

no outgoing calls