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

Function NewSummary

prometheus/promauto/auto.go:211–213  ·  view source on GitHub ↗

NewSummary works like the function of the same name in the prometheus package but it automatically registers the Summary with the prometheus.DefaultRegisterer. If the registration fails, NewSummary panics.

(opts prometheus.SummaryOpts)

Source from the content-addressed store, hash-verified

209// but it automatically registers the Summary with the
210// prometheus.DefaultRegisterer. If the registration fails, NewSummary panics.
211func NewSummary(opts prometheus.SummaryOpts) prometheus.Summary {
212 return With(prometheus.DefaultRegisterer).NewSummary(opts)
213}
214
215// NewSummaryVec works like the function of the same name in the prometheus
216// package but it automatically registers the SummaryVec with the

Callers

nothing calls this directly

Calls 2

WithFunction · 0.85
NewSummaryMethod · 0.80

Tested by

no test coverage detected