-
-
Notifications
You must be signed in to change notification settings - Fork 452
Add masking debug overlay #4357
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
Add masking debug overlay #4357
Conversation
Performance metrics 🚀
|
Revision | Plain | With Sentry | Diff |
---|---|---|---|
a1ad9eb | 410.17 ms | 447.29 ms | 37.12 ms |
3334b5a | 415.90 ms | 436.16 ms | 20.26 ms |
a08f05e | 436.23 ms | 466.02 ms | 29.79 ms |
6e73020 | 425.81 ms | 493.12 ms | 67.31 ms |
App size
Revision | Plain | With Sentry | Diff |
---|---|---|---|
a1ad9eb | 1.58 MiB | 2.08 MiB | 510.65 KiB |
3334b5a | 1.58 MiB | 2.08 MiB | 510.82 KiB |
a08f05e | 1.58 MiB | 2.08 MiB | 510.82 KiB |
6e73020 | 1.58 MiB | 2.08 MiB | 507.64 KiB |
sentry-android-replay/src/main/java/io/sentry/android/replay/util/DebugOverlayDrawable.kt
Outdated
Show resolved
Hide resolved
sentry-android-replay/src/main/java/io/sentry/android/replay/util/DebugOverlayDrawable.kt
Outdated
Show resolved
Hide resolved
sentry-android-replay/src/main/java/io/sentry/android/replay/util/DebugOverlayDrawable.kt
Outdated
Show resolved
Hide resolved
Yeah so I talked to @krystofwoldrich yesterday, and turns out iOS also has a similar option - we were thinking of introducing a top-level api like |
Cocoa has Related cocoa PRs: |
alright, couldn't we draw stroke rectangles instead of solid? then we wouldn't need the opacity parameter. Just trying to align I guess |
sentry-samples/sentry-samples-android/src/main/java/io/sentry/samples/android/MainActivity.java
Outdated
Show resolved
Hide resolved
sentry-android-replay/src/main/java/io/sentry/android/replay/util/DebugOverlayDrawable.kt
Show resolved
Hide resolved
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.
great job!
* Add masking debug overlay * Improve contrast for debug mode * Improve readability * Add ReplayIntegration.enableDebugMasking API, improve debug overlay * Update Changelog * Introduce IReplayApi * Update Changelog * Fix Sample app * Move replay API from SentryAndroid to Sentry
📜 Description
Masks, revealed
For debugging purposes
Screen_recording_20250516_111258.mp4
💡 Motivation and Context
💚 How did you test it?
📝 Checklist
sendDefaultPII
is enabled.🔮 Next steps