Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
hub
/
github.com/grafana/tempo
/ updateRate
Method
updateRate
pkg/usagestats/stats.go:345–348 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
343
}
344
345
func
(c *Counter) updateRate() {
346
total := c.total.Load()
347
c.rate.Store(float64(total) / time.Since(c.resetTime).Seconds())
348
}
349
350
func
(c *Counter) reset() {
351
c.total.Store(0)
Callers
2
TestCounter
Function · 0.95
buildMetrics
Function · 0.80
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
1
Store
Method · 0.65
Tested by
1
TestCounter
Function · 0.76