()
| 117 | } |
| 118 | |
| 119 | func (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 |
no outgoing calls
no test coverage detected