Skip to content

fix(replay): Call sendBufferedReplayOrFlush when opening/sending feedback - #17236

Merged
billyvg merged 1 commit into
developfrom
billy/replay-435-replays-from-feedback-have-gaps-in-the-replay-and-missing
Aug 4, 2025
Merged

fix(replay): Call sendBufferedReplayOrFlush when opening/sending feedback#17236
billyvg merged 1 commit into
developfrom
billy/replay-435-replays-from-feedback-have-gaps-in-the-replay-and-missing

Conversation

@billyvg

Copy link
Copy Markdown
Member

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.

@linear

linearBot commented Jul 30, 2025

Copy link
Copy Markdown

@github-actions

github-actionsBot commented Jul 30, 2025

Copy link
Copy Markdown
Contributor

size-limit report 📦

PathSize% ChangeChange
@sentry/browser23.77 kB--
@sentry/browser - with treeshaking flags22.35 kB--
@sentry/browser (incl. Tracing)39.41 kB--
@sentry/browser (incl. Tracing, Replay)77.5 kB+0.01%+3 B 🔺
@sentry/browser (incl. Tracing, Replay) - with treeshaking flags67.35 kB-0.02%-12 B 🔽
@sentry/browser (incl. Tracing, Replay with Canvas)82.2 kB+0.01%+4 B 🔺
@sentry/browser (incl. Tracing, Replay, Feedback)94.33 kB+0.01%+3 B 🔺
@sentry/browser (incl. Feedback)40.45 kB--
@sentry/browser (incl. sendFeedback)28.45 kB--
@sentry/browser (incl. FeedbackAsync)33.34 kB--
@sentry/react25.5 kB--
@sentry/react (incl. Tracing)41.38 kB--
@sentry/vue28.2 kB--
@sentry/vue (incl. Tracing)41.22 kB--
@sentry/svelte23.79 kB--
CDN Bundle25.28 kB--
CDN Bundle (incl. Tracing)39.29 kB--
CDN Bundle (incl. Tracing, Replay)75.38 kB+0.01%+5 B 🔺
CDN Bundle (incl. Tracing, Replay, Feedback)80.81 kB+0.01%+2 B 🔺
CDN Bundle - uncompressed73.86 kB--
CDN Bundle (incl. Tracing) - uncompressed116.3 kB--
CDN Bundle (incl. Tracing, Replay) - uncompressed230.56 kB+0.02%+40 B 🔺
CDN Bundle (incl. Tracing, Replay, Feedback) - uncompressed243.37 kB+0.02%+40 B 🔺
@sentry/nextjs (client)43.44 kB--
@sentry/sveltekit (client)39.84 kB--
@sentry/node-core47.53 kB--
@sentry/node146.19 kB--
@sentry/node - without tracing91.63 kB--
@sentry/aws-serverless103.08 kB--

View base workflow run

@billyvg
billyvg marked this pull request as ready for review July 30, 2025 20:25
@billyvg
billyvg requested a review from a team as a code ownerJuly 30, 2025 20:25
…edback
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.
@billyvg
billyvgforce-pushed the billy/replay-435-replays-from-feedback-have-gaps-in-the-replay-and-missing branch from fa9d17b to baaedccCompareJuly 31, 2025 14:27
@billyvg
billyvg merged commit c21df26 into developAug 4, 2025
136 checks passed
@billyvg
billyvg deleted the billy/replay-435-replays-from-feedback-have-gaps-in-the-replay-and-missing branch August 4, 2025 12:47
Sign up for freeto 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

@billyvg@chargome