Skip to content

Commit

Permalink
api: fix cannot dump trace (#7255) (#8754)
Browse files Browse the repository at this point in the history
close #7253

api: fix cannot dump trace with dashboard

Signed-off-by: okJiang <[email protected]>

Co-authored-by: okJiang <[email protected]>
  • Loading branch information
ti-chi-bot and okJiang authored Feb 7, 2025
1 parent 55fc8f1 commit 90766a4
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions server/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ import (
"fmt"
"math/rand"
"net/http"
"net/http/pprof"
"os"
"path"
"path/filepath"
Expand Down Expand Up @@ -245,6 +246,9 @@ func combineBuilderServerHTTPService(ctx context.Context, svr *Server, serviceBu
apiService.UseHandler(router)
userHandlers[pdAPIPrefix] = apiService

// fix issue https://github.com/tikv/pd/issues/7253
// FIXME: remove me after upgrade
userHandlers["/debug/pprof/trace"] = http.HandlerFunc(pprof.Trace)
return userHandlers, nil
}

Expand Down

0 comments on commit 90766a4

Please sign in to comment.