1
0
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:
Christoph Maser
2026-01-30 16:02:18 +01:00
committed by GitHub
parent f5d5b6736b
commit e7920ed186

View File

@@ -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)
})
}