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

Method removeStaleSeries

modules/generator/registry/gauge.go:153–164  ·  view source on GitHub ↗
(staleTimeMs int64)

Source from the content-addressed store, hash-verified

151}
152
153func (g *gauge) removeStaleSeries(staleTimeMs int64) {
154 g.seriesMtx.Lock()
155 defer g.seriesMtx.Unlock()
156
157 for hash, s := range g.series {
158 if s.lastUpdated.Load() < staleTimeMs {
159 delete(g.series, hash)
160 g.lifecycler.OnDelete(hash, 1)
161 }
162 }
163 g.seriesDemand.Advance()
164}

Callers

nothing calls this directly

Calls 2

AdvanceMethod · 0.80
OnDeleteMethod · 0.65

Tested by

no test coverage detected