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

Method updateSeries

modules/generator/registry/counter.go:117–121  ·  modules/generator/registry/counter.go::counter.updateSeries
(hash uint64, s *counterSeries, value float64)

Source from the content-addressed store, hash-verified

115}
116
117func (c *counter) updateSeries(hash uint64, s *counterSeries, value float64) {
118 s.value.Add(value)
119 s.lastUpdated.Store(time.Now().UnixMilli())
120 c.lifecycler.OnUpdate(hash, 1)
121}
122
123func (c *counter) name() string {
124 return c.metricName

Callers 1

IncMethod · 0.95

Calls 4

AddMethod · 0.65
StoreMethod · 0.65
NowMethod · 0.65
OnUpdateMethod · 0.65

Tested by

no test coverage detected