-
Notifications
You must be signed in to change notification settings - Fork 297
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
chore: cleanup http handlers #3767
Conversation
warehouse/http.go
Outdated
"pgNotifier": %q, | ||
"acceptingEvents": "TRUE", | ||
"warehouseMode": %q, | ||
"goroutines": "%d" |
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.
@fracasula @lvrach
Should we remove goroutines
from the health payload? Since we removed it from the rudder server because of security concerns.
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.
Also, I don't see any point in exposing it.
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.
Yes we can remove them. If we don't have the debug/pprof endpoint then we can create a task to add it.
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.
We have pprof endpoint.
Codecov ReportPatch coverage:
Additional details and impacted files@@ Coverage Diff @@
## master #3767 +/- ##
==========================================
+ Coverage 68.77% 69.02% +0.25%
==========================================
Files 345 347 +2
Lines 51649 51643 -6
==========================================
+ Hits 35521 35649 +128
+ Misses 13844 13705 -139
- Partials 2284 2289 +5
☔ View full report in Codecov by Sentry. |
f518596
to
06860cb
Compare
warehouse/http.go
Outdated
"pgNotifier": %q, | ||
"acceptingEvents": "TRUE", | ||
"warehouseMode": %q, | ||
"goroutines": "%d" |
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.
Yes we can remove them. If we don't have the debug/pprof endpoint then we can create a task to add it.
02f55b1
to
8b1699e
Compare
e156a31
to
cc34f10
Compare
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, non-blocking comments
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.
Overall comment for the file:
non-5xx HTTP errors should be logged as warnings. Severity can be important in debugging, observability, and setting up alerts.
usage of structured logging will be nice as well
…re.warehouse-http-handler
Description
http
handler related code into a separate file and added test coverage.healthTimeout
andreaderHeaderTimeout
configurable.Linear Ticket
Security