-
-
Notifications
You must be signed in to change notification settings - Fork 58
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
feat: Optionally attach screenshots #510
Conversation
4f632bd
to
a0b0adf
Compare
Woah - amazing work Tim! Will review on Monday. Is there a example event on sentry.io with this - would like to see what it looks like. |
Some other things that might be worth considering now or later:
|
My gut instinct here is yes, as we want to capture what a user is seeing. Are there any possible scenarios where it might be useful to have it for non-visible windows?
This feels like the correct behaviour to me.
Why would we do this? Feels like un-needed complication.
I think we can stick with capturing screenshots for every single error, and just iterate on feedback.
As per the spec: |
I would be looking at screenshots to see what the user was doing when the error occurred. I can imagine getting an event with multiple screenshots, one for each window and wanting to know which one is most relevant for the error I'm looking at.
Defaulting to the focussed window as the first screenshot could even suggest the error came from there. In an ideal world we would tag the screenshots with some context like focus, and "errored", much like stack trace envelope API allows you to set which thread crashed. Could we put some of this into the file names?
Yep, it's probably good enough as it is for now! |
Good point - it prevents you from looking back and forth.
At the current moment it wouldn't do anything (as we require the strict naming scheme to display in the product accordingly) but good suggestion. I will raise these two points at our next internal SDK sync meeting, see what people think - and bring that feedback back here. In the mean time, I think we can ship with what we have! |
We just met and chatted - and the solution of using So we would add an event context (maybe keyed under We might have to first make a PR against https://github.com/getsentry/develop/blob/master/src/docs/sdk/features.mdx#screenshots describing our ideal behaviour - and then inform the other teams working on this. |
Closes #505
attachScreenshot
property to main process optionsScreenshots
integration which is included by default so it can be enabled via the above optionattachments
rather thandumpFile