-
-
Notifications
You must be signed in to change notification settings - Fork 363
Add beforeSendLog
callback to SentryOptions
#5678
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 Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #5678 +/- ##
=============================================
+ Coverage 86.655% 86.675% +0.020%
=============================================
Files 423 423
Lines 36405 36505 +100
Branches 17229 17273 +44
=============================================
+ Hits 31547 31641 +94
- Misses 4813 4819 +6
Partials 45 45
... and 8 files with indirect coverage changes Continue to review full report in Codecov by Sentry.
|
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.
Good progress, left some comments
Performance metrics 🚀
|
Revision | Plain | With Sentry | Diff |
---|---|---|---|
92a02b8 | 1220.89 ms | 1249.27 ms | 28.37 ms |
0b5fd21 | 1237.52 ms | 1251.36 ms | 13.84 ms |
f97a070 | 1218.88 ms | 1253.12 ms | 34.24 ms |
55f739c | 1226.06 ms | 1248.78 ms | 22.71 ms |
42cfd79 | 1222.13 ms | 1244.23 ms | 22.10 ms |
5d238d3 | 1228.94 ms | 1253.04 ms | 24.10 ms |
37183fe | 1212.33 ms | 1238.92 ms | 26.59 ms |
c63e0fe | 1230.58 ms | 1253.94 ms | 23.35 ms |
d38165b | 1211.41 ms | 1242.49 ms | 31.08 ms |
db9572a | 1200.27 ms | 1234.80 ms | 34.53 ms |
App size
Revision | Plain | With Sentry | Diff |
---|---|---|---|
92a02b8 | 23.75 KiB | 913.17 KiB | 889.42 KiB |
0b5fd21 | 23.75 KiB | 912.78 KiB | 889.03 KiB |
f97a070 | 23.75 KiB | 858.68 KiB | 834.93 KiB |
55f739c | 23.75 KiB | 858.73 KiB | 834.98 KiB |
42cfd79 | 23.75 KiB | 880.20 KiB | 856.45 KiB |
5d238d3 | 23.75 KiB | 913.62 KiB | 889.88 KiB |
37183fe | 23.75 KiB | 913.63 KiB | 889.87 KiB |
c63e0fe | 23.74 KiB | 874.08 KiB | 850.33 KiB |
d38165b | 23.75 KiB | 855.37 KiB | 831.62 KiB |
db9572a | 23.75 KiB | 858.69 KiB | 834.93 KiB |
Previous results on branch: feat/structured-logs-before-send
Startup times
Revision | Plain | With Sentry | Diff |
---|---|---|---|
fc721e9 | 1226.10 ms | 1252.48 ms | 26.37 ms |
8b314c4 | 1237.20 ms | 1265.29 ms | 28.08 ms |
a315a86 | 1235.70 ms | 1264.02 ms | 28.33 ms |
App size
Revision | Plain | With Sentry | Diff |
---|---|---|---|
fc721e9 | 23.75 KiB | 919.62 KiB | 895.87 KiB |
8b314c4 | 23.74 KiB | 919.50 KiB | 895.76 KiB |
a315a86 | 23.75 KiB | 913.20 KiB | 889.45 KiB |
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.
I'm unsure about the MutableSentryLog approach.
beforeSendLog
callback to SentryOptions
# Conflicts: # Sources/Swift/Tools/SentryLogger.swift # sdk_api.json # sdk_api_V9.json
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.
Good progress, left a couple of comments
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
#skip-changelog
📜 Description
beforeSendLog
callback toSentryOptions
SentryLog
struct and sub-structures to NSObject for interoperability.SPM
builds, due to issue with compiling a Swift type in ObjC layer.💡 Motivation and Context
Closes #5668
💚 How did you test it?
Unit tests.
📝 Checklist
You have to check all boxes before merging:
sendDefaultPII
is enabled.