-
Notifications
You must be signed in to change notification settings - Fork 454
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
[coordinator] only log stack traces on panic #1480
Conversation
It's often clear where errors are coming from. When stack traces are enabled, if a coordinator is being used as a prom backend and there's an error with the M3DB cluster then every single prom write causes a stack trace and the logs quickly fill up, making debugging difficult.
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
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.
👍
Codecov Report
@@ Coverage Diff @@
## master #1480 +/- ##
========================================
- Coverage 70.9% 70.8% -0.1%
========================================
Files 841 841
Lines 71909 71909
========================================
- Hits 50988 50962 -26
- Misses 17574 17595 +21
- Partials 3347 3352 +5
Continue to review full report at Codecov.
|
Codecov Report
@@ Coverage Diff @@
## master #1480 +/- ##
========================================
- Coverage 70.9% 70.8% -0.1%
========================================
Files 841 841
Lines 71909 71909
========================================
- Hits 50988 50962 -26
- Misses 17574 17595 +21
- Partials 3347 3352 +5
Continue to review full report at Codecov.
|
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.
Hey, not sure if this is necessarily correct, we've had issues debugging open source problems in the past because we couldn't get a full stack trace. If necessary, could we put this behind a flag?
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
It's often clear where errors are coming from. When stack traces are
enabled, if a coordinator is being used as a prom backend and there's an
error with the M3DB cluster then every single prom write causes a stack
trace and the logs quickly fill up, making debugging difficult.