Skip to content

Commit

Permalink
Turn off pprof
Browse files Browse the repository at this point in the history
  • Loading branch information
dehort committed Apr 15, 2024
1 parent 84e505f commit 9b3ef45
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions cmd/run.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,6 @@ import (
"github.com/prometheus/client_golang/prometheus/promhttp"
"github.com/spf13/cobra"
"github.com/spf13/viper"

"net/http"
_ "net/http/pprof"
)

const shutdownTimeout = 20 * time.Second
Expand Down Expand Up @@ -58,8 +55,6 @@ func run(cmd *cobra.Command, args []string) error {
metricsServer.GET("/live", livenessProbeHandler.Check)
metricsServer.GET(cfg.GetString("metrics.path"), echo.WrapHandler(promhttp.Handler()))

metricsServer.GET("/debug/*", echo.WrapHandler(http.DefaultServeMux))

wg := sync.WaitGroup{}

ctx, stop := context.WithCancel(utils.SetLog(context.Background(), log))
Expand Down

0 comments on commit 9b3ef45

Please sign in to comment.