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

Function With

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

With creates a Factory using the provided Registerer for registration of the created Collectors. If the provided Registerer is nil, the returned Factory creates Collectors that are not registered with any Registerer.

(r prometheus.Registerer)

Source from the content-addressed store, hash-verified

256// created Collectors. If the provided Registerer is nil, the returned Factory
257// creates Collectors that are not registered with any Registerer.
258func With(r prometheus.Registerer) Factory { return Factory{r} }
259
260// NewCounter works like the function of the same name in the prometheus package
261// but it automatically registers the Counter with the Factory's Registerer.

Callers 15

newThirdPartyLibFooFunction · 0.92
WrapHandlerMethod · 0.92
startFireKeeperFunction · 0.92
startSparkForgeFunction · 0.92
runMainFunction · 0.92
instrumentHandlerFuncFunction · 0.92
instrumentRoundTripperFunction · 0.92
TestNilFunction · 0.85
NewCounterFunction · 0.85
NewCounterVecFunction · 0.85
NewCounterFuncFunction · 0.85
NewGaugeFunction · 0.85

Calls

no outgoing calls

Tested by 2

newThirdPartyLibFooFunction · 0.74
TestNilFunction · 0.68