-
-
Notifications
You must be signed in to change notification settings - Fork 342
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
ref: SwiftUI custom redact #4392
Conversation
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #4392 +/- ##
=============================================
+ Coverage 91.306% 91.309% +0.002%
=============================================
Files 610 610
Lines 49590 49616 +26
Branches 17862 17894 +32
=============================================
+ Hits 45279 45304 +25
- Misses 4219 4220 +1
Partials 92 92
... and 7 files with indirect coverage changes Continue to review full report in Codecov by Sentry.
|
Performance metrics 🚀
|
Revision | Plain | With Sentry | Diff |
---|---|---|---|
5eaadc5 | 1236.24 ms | 1245.45 ms | 9.20 ms |
ec879f7 | 1304.84 ms | 1337.04 ms | 32.20 ms |
7cd187e | 1243.04 ms | 1244.79 ms | 1.75 ms |
bb71736 | 1244.18 ms | 1248.11 ms | 3.92 ms |
5e66a38 | 1224.16 ms | 1237.76 ms | 13.60 ms |
d8926bf | 1223.31 ms | 1235.36 ms | 12.05 ms |
f1a6589 | 1253.67 ms | 1269.06 ms | 15.39 ms |
4b08ceb | 1237.75 ms | 1249.61 ms | 11.86 ms |
62c15d4 | 1235.30 ms | 1260.82 ms | 25.52 ms |
8ef07fb | 1231.45 ms | 1243.98 ms | 12.53 ms |
App size
Revision | Plain | With Sentry | Diff |
---|---|---|---|
5eaadc5 | 21.58 KiB | 651.06 KiB | 629.48 KiB |
ec879f7 | 21.58 KiB | 669.68 KiB | 648.10 KiB |
7cd187e | 20.76 KiB | 401.65 KiB | 380.89 KiB |
bb71736 | 21.58 KiB | 683.64 KiB | 662.06 KiB |
5e66a38 | 22.85 KiB | 408.88 KiB | 386.03 KiB |
d8926bf | 21.58 KiB | 670.39 KiB | 648.81 KiB |
f1a6589 | 22.85 KiB | 408.87 KiB | 386.02 KiB |
4b08ceb | 20.76 KiB | 431.99 KiB | 411.23 KiB |
62c15d4 | 22.85 KiB | 411.14 KiB | 388.29 KiB |
8ef07fb | 21.58 KiB | 707.42 KiB | 685.84 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.
LGTM, with one small comment.
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.
Logic looks fine, just a couple small notes.
On the whole, we need a glossary of some kind for the terminology in this feature. We have:
- redact
- mask
- ignore
- clipOut
and there appear to be relationships between them, like MaskBehavior.unmask -> clipOut here: https://github.com/getsentry/sentry-cocoa/pull/4392/files#diff-41ef8fea95f3eee0fc534bb78e2112e49be649616ba505e5880b48f50440fc87R31, mask -> redact here: https://github.com/getsentry/sentry-cocoa/pull/4392/files#diff-afcecd8dc3d192d4b23cd642156bc79e26efc2a11ae37210b59dc66e11b014abR280-R281 and here: https://github.com/getsentry/sentry-cocoa/pull/4392/files#diff-afcecd8dc3d192d4b23cd642156bc79e26efc2a11ae37210b59dc66e11b014abR308-R309, and unmask -> ignore here: https://github.com/getsentry/sentry-cocoa/pull/4392/files#diff-afcecd8dc3d192d4b23cd642156bc79e26efc2a11ae37210b59dc66e11b014abR292-R293
If these are just synonyms, can we rename to remove the distinctions without differences? If there are differences, could we explain the differences and relationships somewhere?
ETA: i just saw that some of these were renamed in #4373, but I guess it didn't get everything.
Co-authored-by: Andrew McKnight <[email protected]>
Co-authored-by: Andrew McKnight <[email protected]>
📜 Description
Added
sentryReplayUnmask
as SwiftUI modifier.💚 How did you test it?
Sample tests
📝 Checklist
You have to check all boxes before merging:
sendDefaultPII
is enabled.🔮 Next steps