-
-
Notifications
You must be signed in to change notification settings - Fork 337
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 beforeScreenshot
callback
#3715
Add beforeScreenshot
callback
#3715
Conversation
to allow conditional screenshot attachment based on logic around event/hint
beforeScreenshot
callback
Hi @doronpr, We've already implemented it in some other SDKs, Dart and Android. We also have an open issue in this repository Could you update the PR to use Sentry.init({
beforeScreenshot: (event, hint) => {
return true;
},
}) |
Hey @krystofwoldrich ok I can attempt to do that. |
Thank you.
Yes, it's deprecated, but you can use its replacement |
It's ready for your review 😊 |
Hey @krystofwoldrich just making sure you didn't miss this and it's in your review queue? |
Hey @doronpr thanks for the ping and your patience - the team was out on Friday and Monday due to public holidays, we'll take a look very soon! |
Hi @doronpr, thank you, the code looks great. Let's wait for CI to finish and then we can merge this. |
to allow conditional screenshot attachment based on logic around event/hint
📢 Type of change
📜 Description
extend screenshot integration to allow conditional screenshot attachment based on logic around event/hint
💡 Motivation and Context
We at Wix, would like to attach screenshot in a more granular way.
This is critical in the context of PII (Personal Identifiable Information)
💚 How did you test it?
Locally, instead of sending
attachScreenShot: true
we simply extend the integration and add it.📝 Checklist
sendDefaultPII
is enabled🔮 Next steps