feat: Add showMaskPreview to SentrySDK.replay api to debug replay masking#4761
Merged
feat: Add showMaskPreview to SentrySDK.replay api to debug replay masking#4761
showMaskPreview to SentrySDK.replay api to debug replay masking#4761Conversation
Co-authored-by: Philipp Hofmann <philipp.hofmann@sentry.io>
…y/sentry-cocoa into feat/sr-masking-preview
Contributor
Instructions and example for changelogPlease add an entry to Example: ## Unreleased
- Add `showMaskPreview` to `SentrySDK.replay` api to debug replay masking ([#4761](https://github.com/getsentry/sentry-cocoa/pull/4761))If none of the above apply, you can opt out of this check by adding |
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #4761 +/- ##
=============================================
+ Coverage 91.130% 91.196% +0.066%
=============================================
Files 625 626 +1
Lines 72651 72776 +125
Branches 25825 26495 +670
=============================================
+ Hits 66207 66369 +162
+ Misses 6349 6309 -40
- Partials 95 98 +3
... and 23 files with indirect coverage changes Continue to review full report in Codecov by Sentry.
|
Contributor
Performance metrics 🚀
|
| Revision | Plain | With Sentry | Diff |
|---|---|---|---|
| e8c8a05 | 1218.71 ms | 1234.50 ms | 15.79 ms |
| 4977fbc | 1217.26 ms | 1239.82 ms | 22.56 ms |
| f8833c4 | 1229.69 ms | 1236.45 ms | 6.76 ms |
| a34f08c | 1234.08 ms | 1246.40 ms | 12.31 ms |
| 7cd187e | 1223.41 ms | 1249.40 ms | 26.00 ms |
| 1bbcb9c | 1192.51 ms | 1231.96 ms | 39.45 ms |
| ef5821b | 1253.18 ms | 1265.46 ms | 12.28 ms |
| 881a955 | 1209.47 ms | 1225.94 ms | 16.47 ms |
| ec879f7 | 1218.12 ms | 1236.08 ms | 17.96 ms |
| e1eed6b | 1259.08 ms | 1270.57 ms | 11.49 ms |
App size
| Revision | Plain | With Sentry | Diff |
|---|---|---|---|
| e8c8a05 | 21.58 KiB | 683.51 KiB | 661.92 KiB |
| 4977fbc | 20.76 KiB | 419.85 KiB | 399.10 KiB |
| f8833c4 | 21.58 KiB | 422.66 KiB | 401.08 KiB |
| a34f08c | 22.30 KiB | 730.30 KiB | 708.00 KiB |
| 7cd187e | 20.76 KiB | 401.66 KiB | 380.89 KiB |
| 1bbcb9c | 20.76 KiB | 426.10 KiB | 405.34 KiB |
| ef5821b | 21.58 KiB | 414.96 KiB | 393.37 KiB |
| 881a955 | 22.85 KiB | 407.63 KiB | 384.78 KiB |
| ec879f7 | 21.58 KiB | 669.68 KiB | 648.10 KiB |
| e1eed6b | 20.76 KiB | 432.17 KiB | 411.41 KiB |
Previous results on branch: feat/uikit-masking-preview
Startup times
| Revision | Plain | With Sentry | Diff |
|---|---|---|---|
| 925fcf3 | 1223.77 ms | 1242.21 ms | 18.44 ms |
| 20a7c5f | 1221.20 ms | 1237.02 ms | 15.82 ms |
| d8a4fc7 | 1219.10 ms | 1247.29 ms | 28.18 ms |
| 5e89626 | 1220.49 ms | 1238.45 ms | 17.96 ms |
| bcd7623 | 1200.45 ms | 1227.76 ms | 27.31 ms |
| 050ad94 | 1222.04 ms | 1240.71 ms | 18.67 ms |
| 8ffcc7c | 1229.25 ms | 1247.12 ms | 17.87 ms |
| bb9f0e0 | 1211.08 ms | 1229.24 ms | 18.16 ms |
App size
| Revision | Plain | With Sentry | Diff |
|---|---|---|---|
| 925fcf3 | 22.31 KiB | 778.56 KiB | 756.25 KiB |
| 20a7c5f | 22.31 KiB | 778.61 KiB | 756.30 KiB |
| d8a4fc7 | 22.31 KiB | 778.51 KiB | 756.19 KiB |
| 5e89626 | 22.31 KiB | 778.40 KiB | 756.09 KiB |
| bcd7623 | 22.31 KiB | 778.54 KiB | 756.23 KiB |
| 050ad94 | 22.31 KiB | 778.75 KiB | 756.44 KiB |
| 8ffcc7c | 22.31 KiB | 778.40 KiB | 756.09 KiB |
| bb9f0e0 | 22.31 KiB | 778.60 KiB | 756.29 KiB |
brustolin
commented
Jan 29, 2025
armcknight
approved these changes
Jan 29, 2025
Sources/Swift/Integrations/SessionReplay/Preview/SentryMaskingPreviewView.swift
Outdated
Show resolved
Hide resolved
Tests/SentryTests/Integrations/SessionReplay/SentrySessionReplayIntegrationTests.swift
Outdated
Show resolved
Hide resolved
Tests/SentryTests/Integrations/SessionReplay/SentrySessionReplayIntegrationTests.swift
Show resolved
Hide resolved
Co-authored-by: Andrew McKnight <andrew.mcknight@sentry.io>
7 tasks
* Revert "ref" This reverts commit d174cc2. * Refactory * Format code * Revert "revert" This reverts commit 3d87e52. * Update PrivateSentrySDKOnly.h * SENTRY_HAS_UIKIT * Format code * Update SentryInternal.h * Update CHANGELOG.md * SENTRY_TARGET_REPLAY_SUPPORTED * Update SentrySessionReplayIntegration.m --------- Co-authored-by: Sentry Github Bot <bot+github-bot@sentry.io>
7 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
📜 Description
Add
showMaskPreviewtoSentrySDK.replayapi to debug replay masking💚 How did you test it?
Samples
📝 Checklist
You have to check all boxes before merging:
sendDefaultPIIis enabled.🔮 Next steps