Skip to content

fix(replay/v9): Call sendBufferedReplayOrFlush when opening/sending feedback #17270

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

Open
wants to merge 2 commits into
base: v9
Choose a base branch
from

Conversation

billyvg
Copy link
Member

@billyvg billyvg commented Jul 31, 2025

This is the v9 backport of #17092, which fixes replays created from user feedback where only the buffered segment is flushed and recording stops.

… feedback

I noticed that our replays w/ feedbacks have gaps while the user is entering in their feedback. This is because we call `replay.flush` (not to be confused w/ the public replay integration integration which also has a flush) which only flushes the buffer and continues to buffer. What we want is to call `sendBufferedReplayOrFlush` which will convert the buffered replay into a session replay (after flushing) in order to continue recording.
Copy link

linear bot commented Jul 31, 2025

@billyvg billyvg changed the base branch from develop to v9 July 31, 2025 14:28
@billyvg billyvg changed the title feat(v9/core): Deprecate experimental enableLogs and beforeSendLog option (#17092) fix(replay/v9): Call sendBufferedReplayOrFlush when opening/sending feedback Jul 31, 2025
@billyvg billyvg marked this pull request as ready for review July 31, 2025 14:55
@billyvg billyvg requested a review from a team as a code owner July 31, 2025 14:55
Copy link
Contributor

size-limit report 📦

Path Size % Change Change
@sentry/browser 23.79 kB - -
@sentry/browser - with treeshaking flags 22.36 kB - -
@sentry/browser (incl. Tracing) 39.66 kB - -
@sentry/browser (incl. Tracing, Replay) 77.77 kB +0.01% +2 B 🔺
@sentry/browser (incl. Tracing, Replay) - with treeshaking flags 67.56 kB +0.01% +1 B 🔺
@sentry/browser (incl. Tracing, Replay with Canvas) 82.47 kB +0.01% +2 B 🔺
@sentry/browser (incl. Tracing, Replay, Feedback) 94.56 kB +0.01% +3 B 🔺
@sentry/browser (incl. Feedback) 40.48 kB - -
@sentry/browser (incl. sendFeedback) 28.48 kB - -
@sentry/browser (incl. FeedbackAsync) 33.37 kB - -
@sentry/react 25.55 kB - -
@sentry/react (incl. Tracing) 41.62 kB - -
@sentry/vue 28.24 kB - -
@sentry/vue (incl. Tracing) 41.45 kB - -
@sentry/svelte 23.81 kB - -
CDN Bundle 25.18 kB - -
CDN Bundle (incl. Tracing) 39.42 kB - -
CDN Bundle (incl. Tracing, Replay) 75.39 kB +0.01% +2 B 🔺
CDN Bundle (incl. Tracing, Replay, Feedback) 80.87 kB +0.01% +3 B 🔺
CDN Bundle - uncompressed 73.45 kB - -
CDN Bundle (incl. Tracing) - uncompressed 116.86 kB - -
CDN Bundle (incl. Tracing, Replay) - uncompressed 231.01 kB +0.02% +40 B 🔺
CDN Bundle (incl. Tracing, Replay, Feedback) - uncompressed 243.83 kB +0.02% +40 B 🔺
@sentry/nextjs (client) 43.66 kB - -
@sentry/sveltekit (client) 40.08 kB - -
@sentry/node 169.18 kB - -
@sentry/node - without tracing 100.31 kB - -
@sentry/aws-serverless 128.47 kB - -

View base workflow run

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.

1 participant