My api is protected via jwt, is it possible to specify a jwt token when fetch profile via go tool pprof ?
Currently, I have to config jwt middleware to bypass the /debug/pprof routes.
My api is protected via jwt, is it possible to specify a jwt token when fetch profile via go tool pprof ?
Currently, I have to config jwt middleware to bypass the /debug/pprof routes.
Copyright © 2021 Jogjafile Inc.
I couldn't find a way to pass a token via
go tool pprofdirectly, but due to the fact that you can usecurlto fetch the profile, there is a simple workaround: