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

Method removeStaleSeries

modules/generator/registry/counter.go:174–185  ·  view source on GitHub ↗
(staleTimeMs int64)

Source from the content-addressed store, hash-verified

172}
173
174func (c *counter) removeStaleSeries(staleTimeMs int64) {
175 c.seriesMtx.Lock()
176 defer c.seriesMtx.Unlock()
177
178 for hash, s := range c.series {
179 if s.lastUpdated.Load() < staleTimeMs {
180 delete(c.series, hash)
181 c.lifecycler.OnDelete(hash, 1)
182 }
183 }
184 c.seriesDemand.Advance()
185}

Callers

nothing calls this directly

Calls 2

AdvanceMethod · 0.80
OnDeleteMethod · 0.65

Tested by

no test coverage detected