Commit efd3008 1 parent c0ca530 commit efd3008 Copy full SHA for efd3008
File tree 2 files changed +8
-10
lines changed
2 files changed +8
-10
lines changed Original file line number Diff line number Diff line change @@ -42,6 +42,7 @@ Organizations below are **officially** using Argo Rollouts. Please send a PR wit
42
42
1 . [ PagerDuty] ( https://www.pagerduty.com/ )
43
43
1 . [ PayPal] ( https://www.paypal.com/ )
44
44
1 . [ PayPay] ( https://paypay.ne.jp/ )
45
+ 1 . [ Plaid] ( https://plaid.com/ )
45
46
1 . [ Priceline] ( https://priceline.com )
46
47
1 . [ Productboard] ( https://www.productboard.com )
47
48
1 . [ Quipper] ( https://www.quipper.com/ )
Original file line number Diff line number Diff line change 1
1
package controller
2
2
3
3
import (
4
- "fmt"
5
4
"net/http"
6
5
"net/http/pprof"
7
6
)
8
7
9
- const (
10
- ProfilingPath = "/debug/pprof"
11
- )
12
-
13
8
// NewPProfServer returns a new pprof server to gather runtime profiling data
14
9
func NewPProfServer () * http.ServeMux {
15
10
mux := http .NewServeMux ()
16
11
17
- mux .HandleFunc (ProfilingPath , pprof .Index )
18
- mux .HandleFunc (fmt .Sprintf ("%s/cmdline" , ProfilingPath ), pprof .Cmdline )
19
- mux .HandleFunc (fmt .Sprintf ("%s/profile" , ProfilingPath ), pprof .Profile )
20
- mux .HandleFunc (fmt .Sprintf ("%s/symbol" , ProfilingPath ), pprof .Symbol )
21
- mux .HandleFunc (fmt .Sprintf ("%s/trace" , ProfilingPath ), pprof .Trace )
12
+ // TODO: Remove enumerating all pprof endpoints if/when a more ergonomic
13
+ // attachment solution is introduced. See: https://github.com/golang/go/issues/71213.
14
+ mux .HandleFunc ("/debug/pprof/" , pprof .Index )
15
+ mux .HandleFunc ("/debug/pprof/cmdline/" , pprof .Cmdline )
16
+ mux .HandleFunc ("/debug/pprof/profile/" , pprof .Profile )
17
+ mux .HandleFunc ("/debug/pprof/symbol/" , pprof .Symbol )
18
+ mux .HandleFunc ("/debug/pprof/trace/" , pprof .Trace )
22
19
23
20
return mux
24
21
}
You can’t perform that action at this time.
0 commit comments