NewHistogram works like the function of the same name in the prometheus package but it automatically registers the Histogram with the prometheus.DefaultRegisterer. If the registration fails, NewHistogram panics.
(opts prometheus.HistogramOpts)
| 224 | // package but it automatically registers the Histogram with the |
| 225 | // prometheus.DefaultRegisterer. If the registration fails, NewHistogram panics. |
| 226 | func NewHistogram(opts prometheus.HistogramOpts) prometheus.Histogram { |
| 227 | return With(prometheus.DefaultRegisterer).NewHistogram(opts) |
| 228 | } |
| 229 | |
| 230 | // NewHistogramVec works like the function of the same name in the prometheus |
| 231 | // package but it automatically registers the HistogramVec with the |
nothing calls this directly
no test coverage detected