Skip to content

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

Merged
mydea merged 2 commits intodevelopfrom
fn/replay-buffer-change
Aug 3, 2023
Merged

fix(replay): Ensure buffer->session switch is reliable#8712
mydea merged 2 commits intodevelopfrom
fn/replay-buffer-change

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 added the Package: replay Issues related to the Sentry Replay SDK label Aug 2, 2023
@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
@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

Labels

Package: replay Issues related to the Sentry Replay SDK

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants