sentry-javascript
sentry-javascript copied to clipboard
Attach screenshots to events
Problem Statement
Now that we have mobile screenshots, let's do it for the browser! https://blog.sentry.io/2022/07/07/introducing-mobile-screenshots-and-suspect-commits/
If you would like this feature, please leave a comment/emoji reaction to let us know!
Solution Brainstorm
https://develop.sentry.dev/sdk/features/#screenshots
This will have to be opt-in. We can configure this through an attachScreenshot option, and add a BIG warning about PII
There are Native Browser APIs for this, but there are libraries we can look at here:
- https://github.com/xataio/screenshot
- https://github.com/rsify/pico
Bundle size is something we have to think about, but we can include this as part of an integration.