-
-
Notifications
You must be signed in to change notification settings - Fork 363
Add experimental support for capturing structured logs via SentrySDK.logger
#5532
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 ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #5532 +/- ##
=============================================
+ Coverage 86.518% 86.566% +0.048%
=============================================
Files 415 417 +2
Lines 35307 35435 +128
Branches 15300 15369 +69
=============================================
+ Hits 30547 30675 +128
+ Misses 4720 4716 -4
- Partials 40 44 +4
... and 10 files with indirect coverage changes Continue to review full report in Codecov by Sentry.
🚀 New features to boost your workflow:
|
# Conflicts: # Sources/Sentry/SentryDependencyContainer.m
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.
Almost LGTM, please address the remaining comments and please add a changelog entry. Thank you @denrase 💪
SentrySDK.logger
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.
When CI is green, LGTM. Thank you @denrase.
SentrySDK.logger
SentrySDK.logger
Thanks for your effort @denrase! |
#skip-changelog
📜 Description
SentryLogger
, which is the user facing API:💡 Motivation and Context
This is similar to the structures we have on the Flutter SDK and should be seen as a first attempt to integrate this into cocoa. So please scrutinise it and give me feedback so we can get this right. 🙇
The placement in the Swift folders of the added classes is also something i was not sure about.
Also, this is obviously missing many other features (default attributes, user attributes, batching, etc), but the PR is large enough as is and I hope that the next ones are smaller again.
Relates to #5122
Closes #5585
Closes #5586
Closes #5584
💚 How did you test it?
Unit tests + tried to send a log in the sample app.
📝 Checklist
You have to check all boxes before merging:
sendDefaultPII
is enabled.