NewGaugeFunc works like the function of the same name in the prometheus package but it automatically registers the GaugeFunc with the prometheus.DefaultRegisterer. If the registration fails, NewGaugeFunc panics.
(opts prometheus.GaugeOpts, function func() float64)
| 202 | // package but it automatically registers the GaugeFunc with the |
| 203 | // prometheus.DefaultRegisterer. If the registration fails, NewGaugeFunc panics. |
| 204 | func NewGaugeFunc(opts prometheus.GaugeOpts, function func() float64) prometheus.GaugeFunc { |
| 205 | return With(prometheus.DefaultRegisterer).NewGaugeFunc(opts, function) |
| 206 | } |
| 207 | |
| 208 | // NewSummary works like the function of the same name in the prometheus package |
| 209 | // but it automatically registers the Summary with the |
nothing calls this directly
no test coverage detected