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

Function NewSummaryVec

prometheus/promauto/auto.go:219–221  ·  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 prometheus.DefaultRegisterer. If the registration fails, NewSummaryVec panics.

(opts prometheus.SummaryOpts, labelNames []string)

Source from the content-addressed store, hash-verified

217// prometheus.DefaultRegisterer. If the registration fails, NewSummaryVec
218// panics.
219func NewSummaryVec(opts prometheus.SummaryOpts, labelNames []string) *prometheus.SummaryVec {
220 return With(prometheus.DefaultRegisterer).NewSummaryVec(opts, labelNames)
221}
222
223// NewHistogram works like the function of the same name in the prometheus
224// package but it automatically registers the Histogram with the

Callers

nothing calls this directly

Calls 2

WithFunction · 0.85
NewSummaryVecMethod · 0.45

Tested by

no test coverage detected