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(replays): Add snapshot function to replay canvas integration #10066
Conversation
66bc1a3
to
1044586
Compare
3e11d66
to
86ce591
Compare
Adds a snapshot canvas function that allows you to manually snapshot canvas elements, which enables recording of 3d and webgl canvas Requires getsentry/sentry-javascript#10066
b23bf20
to
86ce591
Compare
Adding this integration in addition to `Replay` will set up canvas recording.
81606d9
to
c9136d5
Compare
b39c5fe
to
d001529
Compare
size-limit report 📦
|
03f872d
to
8f5257f
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We should add a test for this as well, I would look at https://github.com/getsentry/sentry-javascript/blob/fn/replay-canvas-integration-sep-package/dev-packages/browser-integration-tests/suites/replay/canvas/records/test.ts for an example
What's the context for this, actually? So, why/when would you do a manual canvas snapshot? |
8f5257f
to
cb20f6a
Compare
4832cda
to
301dbf4
Compare
dev-packages/browser-integration-tests/suites/replay/canvas/snapshots/init.js
Outdated
Show resolved
Hide resolved
dev-packages/browser-integration-tests/suites/replay/canvas/snapshots/test.ts
Outdated
Show resolved
Hide resolved
9dd8cfe
to
b87f421
Compare
Adding this integration in addition to `Replay` will set up canvas recording.
081dc39
to
bdb58a4
Compare
Adds a snapshot canvas function that allows you to manually snapshot canvas elements, which enables recording of 3d and webgl canvas Requires getsentry/sentry-javascript#10066
Adds a snapshot function that allows the user to manually snapshot canvas for gl/3d contexts. Manual snapshot will take a snapshot of the canvas element passed in or all canvas in the window if nothing is passed in.
To manually snapshot:
new Sentry.ReplayCanvas({ enableManualSnapshot:true })
Sentry.getClient().getIntegrationByName('ReplayCanvas').snapshot();
into your render/repaintCloses https://github.com/getsentry/team-replay/issues/308