Pprof
Pprof mounts the standard library pprof handlers at /debug/pprof.
app.Use(middleware.Pprof())
Use a custom prefix when profiling should live somewhere else.
app.Use(middleware.PprofWithPrefix("/internal/pprof"))
Do not expose pprof publicly without authentication or network restrictions.