Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
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
350
func
(c *Counter) reset() {
351
c.total.Store(0)
352
c.rate.Store(0)
353
c.resetTime = time.Now()
354
}
355
356
func
(c *Counter) Inc(i int64) {
357
c.total.Add(i)
Callers
3
TestCounter
Function · 0.95
Reset
Method · 0.45
buildMetrics
Function · 0.45
Implementers
6
counter
modules/generator/registry/counter.go
testCounter
modules/generator/registry/test.go
testGauge
modules/generator/registry/test.go
gauge
modules/generator/registry/gauge.go
bucket
modules/distributor/usage/tracker.go
Counter
pkg/usagestats/stats.go
Calls
2
Store
Method · 0.65
Now
Method · 0.65
Tested by
2
TestCounter
Function · 0.76
Reset
Method · 0.36