Instrumentation: Add api/health to the unnamed handlers (#55478)

This commit is contained in:
Sofia Papagiannaki 2022-09-22 13:03:20 +03:00 committed by GitHub
parent e5619c0fe6
commit 55ef34bee4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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