NewSummaryVec works like the function of the same name in the prometheus package but it automatically registers the SummaryVec with the Factory's Registerer.
(opts prometheus.SummaryOpts, labelNames []string)
| 335 | // package but it automatically registers the SummaryVec with the Factory's |
| 336 | // Registerer. |
| 337 | func (f Factory) NewSummaryVec(opts prometheus.SummaryOpts, labelNames []string) *prometheus.SummaryVec { |
| 338 | s := prometheus.NewSummaryVec(opts, labelNames) |
| 339 | if f.r != nil { |
| 340 | f.r.MustRegister(s) |
| 341 | } |
| 342 | return s |
| 343 | } |
| 344 | |
| 345 | // NewHistogram works like the function of the same name in the prometheus |
| 346 | // package but it automatically registers the Histogram with the Factory's |
no test coverage detected