(name string)
| 214 | } |
| 215 | |
| 216 | func (r *ManagedRegistry) NewGauge(name string) Gauge { |
| 217 | g := newGauge(name, r, r.externalLabels, r.cfg.StaleDuration) |
| 218 | r.registerMetric(g) |
| 219 | return g |
| 220 | } |
| 221 | |
| 222 | func (r *ManagedRegistry) registerMetric(m metric) { |
| 223 | r.metricsMtx.Lock() |
nothing calls this directly
no test coverage detected