MCPcopy
hub / github.com/caddyserver/caddy / GetMetricsRegistry

Method GetMetricsRegistry

context.go:115–117  ·  view source on GitHub ↗

Returns the active metrics registry for the context EXPERIMENTAL: This API is subject to change.

()

Source from the content-addressed store, hash-verified

113// Returns the active metrics registry for the context
114// EXPERIMENTAL: This API is subject to change.
115func (ctx *Context) GetMetricsRegistry() *prometheus.Registry {
116 return ctx.metricsRegistry
117}
118
119func (ctx *Context) initMetrics() {
120 ctx.metricsRegistry.MustRegister(

Callers 9

TestMetricsHTTPSCatchAllFunction · 0.95
initHTTPMetricsFunction · 0.80
provisionOTLPMethod · 0.80
ProvisionMethod · 0.80
ProvisionMethod · 0.80

Calls

no outgoing calls