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

Method reset

pkg/usagestats/stats.go:350–354  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

348}
349
350func (c *Counter) reset() {
351 c.total.Store(0)
352 c.rate.Store(0)
353 c.resetTime = time.Now()
354}
355
356func (c *Counter) Inc(i int64) {
357 c.total.Add(i)

Callers 3

TestCounterFunction · 0.95
ResetMethod · 0.45
buildMetricsFunction · 0.45

Implementers 6

countermodules/generator/registry/counter.go
testCountermodules/generator/registry/test.go
testGaugemodules/generator/registry/test.go
gaugemodules/generator/registry/gauge.go
bucketmodules/distributor/usage/tracker.go
Counterpkg/usagestats/stats.go

Calls 2

StoreMethod · 0.65
NowMethod · 0.65

Tested by 2

TestCounterFunction · 0.76
ResetMethod · 0.36