-
Notifications
You must be signed in to change notification settings - Fork 5.7k
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: Improve application logs adding message context #9435
Conversation
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.
Just a very opinionated nit, feel free to merge though :)
After analysing failing unit-tests I realized that this PR could potentially introduce an API breaking change by returning wrapped errors. It seems grpc library doesn't play nicely with wrapped errors: Improved the code to avoid introducing API breaking change. |
Codecov Report
@@ Coverage Diff @@
## master #9435 +/- ##
=======================================
Coverage 45.71% 45.71%
=======================================
Files 221 221
Lines 26271 26289 +18
=======================================
+ Hits 12009 12019 +10
- Misses 12606 12610 +4
- Partials 1656 1660 +4
Continue to review full report at Codecov.
|
Signed-off-by: Leonardo Luz Almeida <leonardo_almeida@intuit.com>
Signed-off-by: Leonardo Luz Almeida <leonardo_almeida@intuit.com>
Signed-off-by: Leonardo Luz Almeida <leonardo_almeida@intuit.com>
Signed-off-by: Leonardo Luz Almeida <leonardo_almeida@intuit.com>
Signed-off-by: Leonardo Luz Almeida <leonardo_almeida@intuit.com>
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.
There's no way to overstate what a big deal this is for debugging. Thanks for doing this.
Comments include mostly nits and one important change.
Signed-off-by: Leonardo Luz Almeida <leonardo_almeida@intuit.com>
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!
* chore: Improve application logs adding message context Signed-off-by: Leonardo Luz Almeida <leonardo_almeida@intuit.com> * fix bug returning error incorrectly Signed-off-by: Leonardo Luz Almeida <leonardo_almeida@intuit.com> * Fix unit-test and avoid api breaking change Signed-off-by: Leonardo Luz Almeida <leonardo_almeida@intuit.com> * Fix test Signed-off-by: Leonardo Luz Almeida <leonardo_almeida@intuit.com> * Fix e2e test Signed-off-by: Leonardo Luz Almeida <leonardo_almeida@intuit.com> * Fix e2e test Signed-off-by: Leonardo Luz Almeida <leonardo_almeida@intuit.com> * small fix Signed-off-by: Leonardo Luz Almeida <leonardo_almeida@intuit.com> * Address review comments Signed-off-by: Leonardo Luz Almeida <leonardo_almeida@intuit.com>
Cherry-picked onto 2.4. |
Signed-off-by: Leonardo Luz Almeida leonardo_almeida@intuit.com
Note on DCO:
If the DCO action in the integration test fails, one or more of your commits are not signed off. Please click on the Details link next to the DCO action for instructions on how to resolve this.
Checklist: