Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
hub
/
github.com/grafana/tempo
/ Value
Method
Value
pkg/usagestats/stats.go:365–370 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
363
}
364
365
func
(c *Counter) Value()
map
[string]
interface
{} {
366
return
map
[string]
interface
{}{
367
"total"
: c.total.Load(),
368
"rate"
: c.rate.Load(),
369
}
370
}
371
372
type
WordCounter
struct
{
373
words sync.Map
Callers
5
TestCounter
Function · 0.95
String
Method · 0.95
BuildStats
Function · 0.45
buildMetrics
Function · 0.45
ParseSearchRequestWithDefault
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
no outgoing calls
Tested by
1
TestCounter
Function · 0.76