Skip to content

feat(replay): Add option to skip requestAnimationFrame for canvas snapshots #17380

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

Open
wants to merge 3 commits into
base: develop
Choose a base branch
from

Conversation

billyvg
Copy link
Member

@billyvg billyvg commented Aug 11, 2025

This adds an option to snapshot() to skip requestAnimationFrame when manually snapshotting.

Usage

const replayIntegration = Sentry.getClient()?.getIntegrationByName('ReplayCanvas');
replayIntegration?.snapshot(canvasEl, {skipRequestAnimationFrame: true});

Requires also bumping rrweb depending to support this option.

Closes #17330

…napshots

This adds an option to `snapshot()` to skip `requestAnimationFrame` when manually snapshotting.
@billyvg billyvg force-pushed the billy/feat-replay-canvas-snapshot-option-skip-raf branch from e1ab481 to 69ee75e Compare August 13, 2025 17:37
Copy link
Contributor

github-actions bot commented Aug 13, 2025

size-limit report 📦

Path Size % Change Change
@sentry/browser 24.16 kB - -
@sentry/browser - with treeshaking flags 22.73 kB - -
@sentry/browser (incl. Tracing) 39.87 kB - -
@sentry/browser (incl. Tracing, Replay) 78.18 kB +0.25% +192 B 🔺
@sentry/browser (incl. Tracing, Replay) - with treeshaking flags 67.98 kB +0.22% +146 B 🔺
@sentry/browser (incl. Tracing, Replay with Canvas) 82.86 kB +0.22% +178 B 🔺
@sentry/browser (incl. Tracing, Replay, Feedback) 94.97 kB +0.19% +180 B 🔺
@sentry/browser (incl. Feedback) 40.83 kB - -
@sentry/browser (incl. sendFeedback) 28.81 kB - -
@sentry/browser (incl. FeedbackAsync) 33.7 kB - -
@sentry/react 25.88 kB - -
@sentry/react (incl. Tracing) 41.86 kB - -
@sentry/vue 28.64 kB - -
@sentry/vue (incl. Tracing) 41.69 kB - -
@sentry/svelte 24.18 kB - -
CDN Bundle 25.66 kB - -
CDN Bundle (incl. Tracing) 39.76 kB - -
CDN Bundle (incl. Tracing, Replay) 75.98 kB +0.22% +161 B 🔺
CDN Bundle (incl. Tracing, Replay, Feedback) 81.41 kB +0.18% +142 B 🔺
CDN Bundle - uncompressed 74.96 kB - -
CDN Bundle (incl. Tracing) - uncompressed 117.59 kB - -
CDN Bundle (incl. Tracing, Replay) - uncompressed 232.61 kB +0.32% +735 B 🔺
CDN Bundle (incl. Tracing, Replay, Feedback) - uncompressed 245.21 kB +0.31% +735 B 🔺
@sentry/nextjs (client) 43.89 kB - -
@sentry/sveltekit (client) 40.32 kB - -
@sentry/node-core 47.99 kB -0.01% -1 B 🔽
@sentry/node 147.03 kB - -
@sentry/node - without tracing 92.24 kB - -
@sentry/aws-serverless 103.67 kB - -

View base workflow run

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Replay] Manual snapshot results in blank or missing frames in ReplayCanvas
1 participant