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

fix(replay): Ensure buffer->session switch is reliable #8712

Merged
merged 2 commits into from
Aug 3, 2023

Conversation

mydea
Copy link
Member

@mydea mydea commented Aug 2, 2023

This does two things:

  1. Ensure we switch the recordingMode only once, to avoid running this process twice if e.g. multiple errors happen
  2. Do not update session.started property when switching buffer->session. We just keep started at whatever was the first event sent.

This does two things:
1. Ensure we switch the `recordingMode` only once, to avoid running this process twice if e.g. multiple errors happen
2. Do not update `session.started` property when switching buffer->session. We just keep started at whatever was the first event sent.
@mydea mydea requested a review from billyvg August 2, 2023 09:48
@mydea mydea self-assigned this Aug 2, 2023
Co-authored-by: Billy Vong <billyvg@users.noreply.github.com>
@github-actions
Copy link
Contributor

github-actions bot commented Aug 3, 2023

size-limit report 📦

Path Size
@sentry/browser (incl. Tracing, Replay) - Webpack (gzipped) 74.82 KB (+0.17% 🔺)
@sentry/browser (incl. Tracing) - Webpack (gzipped) 31.11 KB (0%)
@sentry/browser - Webpack (gzipped) 21.81 KB (0%)
@sentry/browser (incl. Tracing, Replay) - ES6 CDN Bundle (gzipped) 69.51 KB (-0.01% 🔽)
@sentry/browser (incl. Tracing) - ES6 CDN Bundle (gzipped) 28.14 KB (0%)
@sentry/browser - ES6 CDN Bundle (gzipped) 20.15 KB (-0.01% 🔽)
@sentry/browser (incl. Tracing, Replay) - ES6 CDN Bundle (minified & uncompressed) 218.96 KB (+0.02% 🔺)
@sentry/browser (incl. Tracing) - ES6 CDN Bundle (minified & uncompressed) 84.63 KB (0%)
@sentry/browser - ES6 CDN Bundle (minified & uncompressed) 59.8 KB (0%)
@sentry/browser (incl. Tracing) - ES5 CDN Bundle (gzipped) 30.43 KB (-0.01% 🔽)
@sentry/react (incl. Tracing, Replay) - Webpack (gzipped) 65.03 KB (+0.19% 🔺)
@sentry/react - Webpack (gzipped) 21.84 KB (0%)
@sentry/nextjs Client (incl. Tracing, Replay) - Webpack (gzipped) 92.62 KB (+0.12% 🔺)
@sentry/nextjs Client - Webpack (gzipped) 50.61 KB (0%)

@mydea mydea merged commit e586397 into develop Aug 3, 2023
72 checks passed
@mydea mydea deleted the fn/replay-buffer-change branch August 3, 2023 07:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants