Remove Add(0)
Signed-off-by: Matthias Loibl <mail@matthiasloibl.com>
This commit is contained in:
parent
8bc2a19469
commit
686482ab34
|
@ -158,7 +158,7 @@ func (m *metrics) instrumentHandlerWithPrefix(prefix string) func(handlerName st
|
||||||
}
|
}
|
||||||
|
|
||||||
func (m *metrics) instrumentHandler(handlerName string, handler http.HandlerFunc) http.HandlerFunc {
|
func (m *metrics) instrumentHandler(handlerName string, handler http.HandlerFunc) http.HandlerFunc {
|
||||||
m.requestCounter.WithLabelValues(handlerName, "200").Add(0)
|
m.requestCounter.WithLabelValues(handlerName, "200")
|
||||||
return promhttp.InstrumentHandlerCounter(
|
return promhttp.InstrumentHandlerCounter(
|
||||||
m.requestCounter.MustCurryWith(prometheus.Labels{"handler": handlerName}),
|
m.requestCounter.MustCurryWith(prometheus.Labels{"handler": handlerName}),
|
||||||
promhttp.InstrumentHandlerDuration(
|
promhttp.InstrumentHandlerDuration(
|
||||||
|
|
Loading…
Reference in New Issue