-
Notifications
You must be signed in to change notification settings - Fork 221
feat(pprof): Added pprof #2029
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat(pprof): Added pprof #2029
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## reboot #2029 +/- ##
==========================================
+ Coverage 89.78% 93.30% +3.51%
==========================================
Files 17 18 +1
Lines 999 1031 +32
==========================================
+ Hits 897 962 +65
+ Misses 81 54 -27
+ Partials 21 15 -6 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
6890620 to
c406f2b
Compare
internal/server/server.go
Outdated
| } | ||
|
|
||
| func (s *APIServer) Register(endpoint, summary, description string, handler http.Handler) error { | ||
| s.logger.Debug("Endpoint Registered", "endppoint", endpoint) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: typo
| s.logger.Debug("Endpoint Registered", "endppoint", endpoint) | |
| s.logger.Debug("Endpoint Registered", "endpoint", endpoint) |
internal/server/pprof.go
Outdated
| var _ service.Service = &pp{} | ||
| var _ service.Initializer = &pp{} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
minor: we don't need an object to be created for this assertion
var _ service.Service = (*pp)(nil)
| Log Log `yaml:"log"` | ||
| Host Host `yaml:"host"` | ||
| Dev Dev `yaml:"dev"` // WARN: do not expose dev settings as flags | ||
| EnablePprof bool `yaml:"enable-pprof"` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
question: What do you think about (separate PR / task)
debug:
enable-pprof: true #
collectors: # so that we group all debugging under debug
- go
- process
sthaha
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, need a followup for minor fixes.
Signed-off-by: Vimal Kumar <[email protected]>
pushed 2 changes, for typpo and for interface assertion |
Added pprof