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

Revert "fix: isCheckout is not included in fullsnapshot event (#1141)" #139

Merged
merged 1 commit into from
Dec 11, 2023

Conversation

billyvg
Copy link
Member

@billyvg billyvg commented Dec 8, 2023

This reverts commit 3416c3a.

From my comment here

I only used translate on the OP but if I understand correctly, when we call takeFullSnapshot(true), we will receive two distinct events with the isCheckout arg as true. Looking at the blame this is due to rrweb-io#1141.

If you use checkoutEvery... and rely on isCheckout to reset existing events, this means that the Meta event will be lost because the FullSnapshot occurs afterwards, and isCheckout is true for both events. Losing the Meta event means that the replayer will be unable to set its dimensions, making the replay look broken.

@billyvg billyvg marked this pull request as ready for review December 8, 2023 21:08
@billyvg billyvg requested a review from a team December 8, 2023 21:08
@billyvg billyvg merged commit 4305c91 into sentry-v2 Dec 11, 2023
14 checks passed
@billyvg billyvg deleted the revert-isCheckout-on-full-snapshot branch December 11, 2023 15:55
billyvg added a commit that referenced this pull request Apr 26, 2024
…io#1141)" (#139)

This reverts commit 3416c3a.

From [my comment
here](rrweb-io#1242 (comment))

> I only used translate on the OP but if I understand correctly, when we
call `takeFullSnapshot(true)`, we will receive two distinct events with
the `isCheckout` arg as `true`. Looking at the blame this is due to

> If you use `checkoutEvery...` and rely on `isCheckout` to reset
existing events, this means that the [`Meta`
event](https://github.com/rrweb-io/rrweb/blob/master/packages/rrweb/src/record/index.ts#L352-L362)
will be lost because [the
`FullSnapshot`](https://github.com/rrweb-io/rrweb/blob/master/packages/rrweb/src/record/index.ts#L408-L417)
occurs afterwards, and `isCheckout` is true for both events. Losing the
`Meta` event means that the replayer will be unable to set its
dimensions, making the replay look broken.
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.

2 participants