MCPcopy
hub / github.com/prometheus/client_golang / NewSummaryVec

Method NewSummaryVec

prometheus/promauto/auto.go:337–343  ·  view source on GitHub ↗

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)

Source from the content-addressed store, hash-verified

335// package but it automatically registers the SummaryVec with the Factory's
336// Registerer.
337func (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

Callers 1

NewSummaryVecFunction · 0.45

Calls 2

NewSummaryVecFunction · 0.92
MustRegisterMethod · 0.65

Tested by

no test coverage detected