Skip to content
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

Enable pprof HTTP endpoints with CLI flag #107

Merged
merged 3 commits into from
Aug 29, 2024
Merged

Conversation

andreibancioiu
Copy link
Contributor

@andreibancioiu andreibancioiu commented Aug 29, 2024

@andreibancioiu andreibancioiu self-assigned this Aug 29, 2024
@andreibancioiu andreibancioiu marked this pull request as ready for review August 29, 2024 10:17
func newPprofController() *pprofController {
routes := []server.Route{
{
Method: "GET",
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

maybe you can use const http.MethodGet

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed.

}
}

func (r *pprofController) Routes() server.Routes {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

missing comment

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed.

@andreibancioiu andreibancioiu merged commit 7dd3f2d into feat/spica Aug 29, 2024
6 checks passed
@andreibancioiu andreibancioiu deleted the pprof-1 branch August 29, 2024 12:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants