Skip to content

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

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 1 commit into
base: develop
Choose a base branch
from

Conversation

billyvg
Copy link
Member

@billyvg billyvg commented Jul 30, 2025

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 30, 2025

Copy link
Contributor

github-actions bot commented Jul 30, 2025

size-limit report 📦

Path Size % Change Change
@sentry/browser 23.77 kB - -
@sentry/browser - with treeshaking flags 22.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 flags 67.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/react 25.5 kB - -
@sentry/react (incl. Tracing) 41.38 kB - -
@sentry/vue 28.2 kB - -
@sentry/vue (incl. Tracing) 41.22 kB - -
@sentry/svelte 23.79 kB - -
CDN Bundle 25.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 - uncompressed 73.86 kB - -
CDN Bundle (incl. Tracing) - uncompressed 116.3 kB - -
CDN Bundle (incl. Tracing, Replay) - uncompressed 230.56 kB +0.02% +40 B 🔺
CDN Bundle (incl. Tracing, Replay, Feedback) - uncompressed 243.37 kB +0.02% +40 B 🔺
@sentry/nextjs (client) 43.44 kB - -
@sentry/sveltekit (client) 39.84 kB - -
@sentry/node-core 47.53 kB - -
@sentry/node 146.19 kB - -
@sentry/node - without tracing 91.63 kB - -
@sentry/aws-serverless 103.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 owner July 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 billyvg force-pushed the billy/replay-435-replays-from-feedback-have-gaps-in-the-replay-and-missing branch from fa9d17b to baaedcc Compare July 31, 2025 14:27
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