From 55ef34bee492368e389868d7daddb675c699c2b2 Mon Sep 17 00:00:00 2001 From: Sofia Papagiannaki <1632407+papagian@users.noreply.github.com> Date: Thu, 22 Sep 2022 13:03:20 +0300 Subject: [PATCH] Instrumentation: Add api/health to the unnamed handlers (#55478) --- pkg/middleware/request_tracing.go | 1 + 1 file changed, 1 insertion(+) diff --git a/pkg/middleware/request_tracing.go b/pkg/middleware/request_tracing.go index e86cc4f3388..c51c5654c3b 100644 --- a/pkg/middleware/request_tracing.go +++ b/pkg/middleware/request_tracing.go @@ -49,6 +49,7 @@ var unnamedHandlers = []struct { {handler: "public-assets", pathPattern: regexp.MustCompile("^/public/")}, {handler: "/metrics", pathPattern: regexp.MustCompile("^/metrics")}, {handler: "/healthz", pathPattern: regexp.MustCompile("^/healthz")}, + {handler: "/api/health", pathPattern: regexp.MustCompile("^/api/health")}, {handler: "/robots.txt", pathPattern: regexp.MustCompile("^/robots.txt$")}, // bundle all pprof endpoints under the same handler name {handler: "/debug/pprof-handlers", pathPattern: regexp.MustCompile("^/debug/pprof")},