From af7095d1b89273c3dc27ea012de293ddb15f1cab Mon Sep 17 00:00:00 2001 From: "Lawrence, Rendall" Date: Mon, 10 Feb 2025 14:44:12 +0300 Subject: [PATCH] (minor) fix missing pprof handlers --- pkg/metrics/server.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkg/metrics/server.go b/pkg/metrics/server.go index 8fe5ddf..5979d3b 100644 --- a/pkg/metrics/server.go +++ b/pkg/metrics/server.go @@ -89,11 +89,11 @@ func New(addr string) *Server { r := router.New() r.GET("/metrics", fasthttpadaptor.NewFastHTTPHandler(promhttp.Handler())) - r.GET("/debug/pprof/", fasthttpadaptor.NewFastHTTPHandlerFunc(pprof.Index)) r.GET("/debug/pprof/cmdline", fasthttpadaptor.NewFastHTTPHandlerFunc(pprof.Cmdline)) - r.GET("/debug/pprof/profile", fasthttpadaptor.NewFastHTTPHandlerFunc(pprof.Profile)) r.GET("/debug/pprof/symbol", fasthttpadaptor.NewFastHTTPHandlerFunc(pprof.Symbol)) r.GET("/debug/pprof/trace", fasthttpadaptor.NewFastHTTPHandlerFunc(pprof.Trace)) + r.GET("/debug/pprof/profile", fasthttpadaptor.NewFastHTTPHandlerFunc(pprof.Profile)) + r.GET("/debug/pprof/{path:*}", fasthttpadaptor.NewFastHTTPHandlerFunc(pprof.Index)) return &Server{ listen: addr,