Skip to content

Set maximum resolution limits for canvas recordings #10498

Closed
@billyvg

Description

@billyvg

We need to set a max canvas size when recording and downscale the snapshots as necessary, otherwise end users may run into performance issues capturing large canvases and we will end up storing large snapshots.

Right now we call createImageBitmap on the main thread and transfer it to the webworker to base64 encode. We may want to think about combining this ticket with #10497 to make sure we do not make performance even worse.

We may be able to clone/transfer the canvas to webworker, and then scale it down to a reasonable size, call createImageBitmap(), and base64 encode it (all on webworker).

Metadata

Metadata

Assignees

No one assigned

    Labels

    Package: replayIssues related to the Sentry Replay SDK

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions