-
Notifications
You must be signed in to change notification settings - Fork 6
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
feat: add logger with userId and clientId #2100
feat: add logger with userId and clientId #2100
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.
Nicely done!
Not only this adds the possibility of adding a User/Client to the logs, but it also fixes the issue where tags keep changing due to it being mutable inside KaliumLogger
.
Just some suggestions to add Kdocs to the new Tag
class and the fields/functions where it can be used
logger/src/commonMain/kotlin/com/wire/kalium/logger/KaliumLogger.kt
Outdated
Show resolved
Hide resolved
Datadog ReportAll test runs ✅ 2 Total Test Services: 0 Failed, 0 with New Flaky, 2 Passed Test Services
|
Codecov Report
@@ Coverage Diff @@
## release/candidate #2100 +/- ##
====================================================
Coverage ? 58.08%
Complexity ? 21
====================================================
Files ? 1004
Lines ? 37639
Branches ? 3436
====================================================
Hits ? 21862
Misses ? 14306
Partials ? 1471 Continue to review full report in Codecov by Sentry.
|
* feat: add logger with userid and clientid * update lib version * added some documentation to the KaliumLogger tags * moved creating string tag to Tag sealed class * fix detekt * fix tests
PR Submission Checklist for internal contributors
The PR Title
SQPIT-764
The PR Description
What's new in this PR?
Issues
Currently logs are not associated with specific user and client which makes debugging harder.
Solutions
Create a logger in user scope that can pass userId and clientId with each log.
Testing
Test Coverage (Optional)
How to Test
PR Post Submission Checklist for internal contributors (Optional)
PR Post Merge Checklist for internal contributors
References
feat(conversation-list): Sort conversations by most emojis in the title #SQPIT-764
.