mirror of
https://github.com/prometheus/alertmanager.git
synced 2026-02-05 06:45:45 +01:00
chore(api): replcae deprecated otel.WithRouteTag (#4897)
Signed-off-by: Christoph Maser <christoph.maser+github@gmail.com>
This commit is contained in:
@@ -243,7 +243,7 @@ func (api *API) instrumentHandler(prefix string, h http.Handler) http.Handler {
|
||||
}
|
||||
promhttp.InstrumentHandlerDuration(
|
||||
api.requestDuration.MustCurryWith(prometheus.Labels{"handler": path}),
|
||||
otelhttp.WithRouteTag(path, h),
|
||||
otelhttp.NewHandler(h, path),
|
||||
).ServeHTTP(w, r)
|
||||
})
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user