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

Method initMetrics

context.go:119–129  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

117}
118
119func (ctx *Context) initMetrics() {
120 ctx.metricsRegistry.MustRegister(
121 collectors.NewBuildInfoCollector(),
122 collectors.NewProcessCollector(collectors.ProcessCollectorOpts{}),
123 collectors.NewGoCollector(),
124 adminMetrics.requestCount,
125 adminMetrics.requestErrors,
126 globalMetrics.configSuccess,
127 globalMetrics.configSuccessTime,
128 )
129}
130
131// OnExit executes f when the process exits gracefully.
132// The function is only executed if the process is gracefully

Callers 1

NewContextWithCauseFunction · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected