NewCounter works like the function of the same name in the prometheus package but it automatically registers the Counter with the prometheus.DefaultRegisterer. If the registration fails, NewCounter panics.
(opts prometheus.CounterOpts)
| 165 | // but it automatically registers the Counter with the |
| 166 | // prometheus.DefaultRegisterer. If the registration fails, NewCounter panics. |
| 167 | func NewCounter(opts prometheus.CounterOpts) prometheus.Counter { |
| 168 | return With(prometheus.DefaultRegisterer).NewCounter(opts) |
| 169 | } |
| 170 | |
| 171 | // NewCounterVec works like the function of the same name in the prometheus |
| 172 | // package but it automatically registers the CounterVec with the |
nothing calls this directly
no test coverage detected