Skip to content
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(replay): Add option to pass in custom record fn #11702

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

Conversation

billyvg
Copy link
Member

@billyvg billyvg commented Apr 19, 2024

Bringing back #8647 but it would be nice to test new versions of rrweb without having to bundle it with our replay SDK.

@billyvg billyvg force-pushed the feat-replay-allow-external-record-fn branch 2 times, most recently from 9699435 to 5708be8 Compare April 19, 2024 19:42
Copy link
Contributor

github-actions bot commented Apr 19, 2024

size-limit report 📦

Path Size
@sentry/browser 21.65 KB (added)
@sentry/browser (incl. Tracing) 32.66 KB (added)
@sentry/browser (incl. Tracing, Replay) 67.98 KB (added)
@sentry/browser (incl. Tracing, Replay) - with treeshaking flags 61.39 KB (added)
@sentry/browser (incl. Tracing, Replay with Canvas) 72 KB (added)
@sentry/browser (incl. Tracing, Replay, Feedback) 84.23 KB (added)
@sentry/browser (incl. Feedback) 37.76 KB (added)
@sentry/browser (incl. sendFeedback) 26.43 KB (added)
@sentry/browser (incl. FeedbackAsync) 30.91 KB (added)
@sentry/react 24.33 KB (added)
@sentry/react (incl. Tracing) 35.56 KB (added)
@sentry/vue 25.26 KB (added)
@sentry/vue (incl. Tracing) 34.4 KB (added)
@sentry/svelte 21.77 KB (added)
CDN Bundle 23.95 KB (added)
CDN Bundle (incl. Tracing) 33.9 KB (added)
CDN Bundle (incl. Tracing, Replay) 67.51 KB (added)
CDN Bundle (incl. Tracing, Replay, Feedback) 83.31 KB (added)
CDN Bundle - uncompressed 70.56 KB (added)
CDN Bundle (incl. Tracing) - uncompressed 100.8 KB (added)
CDN Bundle (incl. Tracing, Replay) - uncompressed 210.41 KB (added)
CDN Bundle (incl. Tracing, Replay, Feedback) - uncompressed 256.73 KB (added)
@sentry/nextjs (client) 34.79 KB (added)
@sentry/sveltekit (client) 33.16 KB (added)
@sentry/node 152.84 KB (added)

Bringing back #8647 but it would be nice to test new versions of rrweb without having to bundle it with our replay SDK.
@billyvg billyvg force-pushed the feat-replay-allow-external-record-fn branch from 5708be8 to 0376fe3 Compare April 19, 2024 19:50
@@ -1,5 +1,4 @@
import { record } from '@sentry-internal/rrweb';
import type { serializedElementNodeWithId, serializedNodeWithId } from '@sentry-internal/rrweb-snapshot';
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hmm, the ts3.8 tests are failing because this snapshot package uses Lowercase (amongst others) that were introduced after 3.8 (Lowercase was added in 4.1), but we've always been pulling in types from snapshot, so not sure why they are now failing. The only difference is we are importing Mirror type.

any ideas @AbhiPrasad?

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.

None yet

1 participant