Skip to content

Commit

Permalink
(minor) fix missing pprof handlers
Browse files Browse the repository at this point in the history
  • Loading branch information
Lawrence, Rendall committed Feb 10, 2025
1 parent 7fefccc commit af7095d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkg/metrics/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit af7095d

Please sign in to comment.