spotlight icon indicating copy to clipboard operation
spotlight copied to clipboard

Support Screenshot

Open buenaflor opened this issue 2 years ago • 4 comments

Mobile SDKs can capture screenshots and send envelope items with image/png content type. The overlay cannot process events with screenshots currently which leads to them not being displayed although they were ingested properly through the side car

buenaflor avatar Dec 15 '23 02:12 buenaflor

Hi @buenaflor please follow these steps - https://spotlightjs.com/contribute/development/ And provide a sample file to debug the issue. It will help the team to debug the issue. Thanks

Shubhdeep12 avatar Feb 05 '24 09:02 Shubhdeep12

We now have a sample envelope with a screenshot in it: https://github.com/getsentry/spotlight/blob/main/packages/overlay/_fixtures/envelope_with_screenshot.bin

I think this can be done along with implementing attachments support.

BYK avatar Dec 14 '24 01:12 BYK

FYI we fixed the processing error in #631 so constructing the image shouldn't be too hard at this point.

BYK avatar Dec 14 '24 01:12 BYK

We may need to add msgpack decoding for these: https://msgpack.org/index.html

BYK avatar Dec 31 '24 13:12 BYK

I added much better support for attachments with #946 that said for some reason the envelope we had here produces a corrupt PNG image. I will investigate this: it can be a bug in our decoding logic or the envelope might be corrupt.

If anyone has an envelope with a screenshot in it, I can try with that.

BYK avatar Sep 26 '25 20:09 BYK

These are now supported in envelope details page. We just need to surface them in event context tab.

BYK avatar Oct 30 '25 16:10 BYK