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

Method activeSeries

modules/generator/registry/registry_test.go:71–79  ·  view source on GitHub ↗

TODO: rewrite tests to use mocked limiter instead of this

()

Source from the content-addressed store, hash-verified

69
70// TODO: rewrite tests to use mocked limiter instead of this
71func (r *ManagedRegistry) activeSeries() uint32 {
72 r.metricsMtx.RLock()
73 defer r.metricsMtx.RUnlock()
74 output := uint32(0)
75 for _, m := range r.metrics {
76 output += uint32(m.countActiveSeries())
77 }
78 return output
79}
80
81func TestManagedRegistry_concurrency(*testing.T) {
82 cfg := &Config{

Calls 1

countActiveSeriesMethod · 0.65

Tested by

no test coverage detected