-
-
Notifications
You must be signed in to change notification settings - Fork 338
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
[Feature Request] View masking previews #4367
Comments
Hi @amrfarid140, I think we could even add global option to show the custom masking previews. Sentry.init({
integrations: [
mobileReplayIntegration({
previewCustomMasks: true,
}),
]
}) As you mentioned the process of the custom masking took some time, could you share a bit more about your experience? Were you using the React Have you encountered any unexpected behaviour with these classes? |
Thanks for considering @krystofwoldrich !
Yes actually I have this one component that I am unable to Mask and wrapping it with I will try to pull together a small reproducer project but for now. It goes like
Then masking fails. It's completely unmasked by default for some reason even though Sentry SDK promises that all texts are masked by default. What I tried is:
I think the main problem though is that we are effectively rendering a
Which breaks the default |
Problem Statement
I am integrating Session Replay in a React native based app with some custom masking rules. Each time I need to check how the view is masked, I have to run the app, wait for the session to appear on sentry, scroll the video to find my target screen and finally check the masking. Repeat until I've got it right.
This is very tedious to do and is error-prone.
Solution Brainstorm
Add a
SentryMaskPreview
component that can be used to render a masked child component. We can then rely on hot-reload to get a quick feedback loop when implementing custom masking logic.The iOS native feature request:
getsentry/sentry-cocoa#4633
The text was updated successfully, but these errors were encountered: