TODO: rewrite tests to use mocked limiter instead of this
()
| 69 | |
| 70 | // TODO: rewrite tests to use mocked limiter instead of this |
| 71 | func (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 | |
| 81 | func TestManagedRegistry_concurrency(*testing.T) { |
| 82 | cfg := &Config{ |
no test coverage detected