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