-
Notifications
You must be signed in to change notification settings - Fork 50
refactor: simplify and improve logging hook #361
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
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #361 +/- ##
==========================================
+ Coverage 88.20% 88.80% +0.60%
==========================================
Files 14 14
Lines 1407 1403 -4
==========================================
+ Hits 1241 1246 +5
+ Misses 142 136 -6
+ Partials 24 21 -3
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
Signed-off-by: Sahid Velji <sahidvelji@gmail.com>
Signed-off-by: Sahid Velji <sahidvelji@gmail.com>
Signed-off-by: Sahid Velji <sahidvelji@gmail.com>
235b3e1 to
1791cd8
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.
Thank you for the contributions. This looks really helpful. Unfortunately, I am not as proficient with Golang, so I will wait for another approval before merging.
Side question: do we have automated tests for this?
Signed-off-by: Sahid Velji <sahidvelji@gmail.com>
|
Good call on tests. I added the |
Signed-off-by: Sahid Velji <sahidvelji@gmail.com>
|
Hey @sahidvelji, could you please also add a short section to the readme that mentions the hook? Here's an example from Java. It would be nice to include a short code example too (something currently missing from the Java example). |
@beeme1mr Yes that makes sense, but I'd like to do that in a separate PR if you're OK with it. I have created an issue. Feel free to assign me to it. |
This PR
stagekey to the logs as per the spech(thebuildArgsmethod had a receiver namedl)buildArgsmethod by removing the error return parameterinterface{}types to log attributesctxparameter is passed toLogger.LogAttrs)Related Issues
Notes
Follow-up Tasks
How to test