Skip to content

Conversation

@chargome
Copy link
Member

@chargome chargome commented Sep 24, 2025

Adds a flag replay_is_buffering for identifying cases where the replayId is attached but the replay itself might never arrive in Sentry.

ref #17676

@chargome chargome self-assigned this Sep 24, 2025
Comment on lines +155 to +157
Integration & {
getReplayId: (onlyIfSampled?: boolean) => string;
getRecordingMode: () => 'session' | 'buffer' | undefined;
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@AbhiPrasad I kept the inlined types here, I assume we have no access to the replay types in core?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We could extract the types into core to make this a more "public" API, it also helps to keep this consistent. I'd just do it in another PR though.

@github-actions
Copy link
Contributor

github-actions bot commented Sep 24, 2025

size-limit report 📦

Path Size % Change Change
@sentry/browser 24.26 kB - -
@sentry/browser - with treeshaking flags 22.77 kB - -
@sentry/browser (incl. Tracing) 40.43 kB - -
@sentry/browser (incl. Tracing, Replay) 78.82 kB - -
@sentry/browser (incl. Tracing, Replay) - with treeshaking flags 68.48 kB - -
@sentry/browser (incl. Tracing, Replay with Canvas) 83.49 kB - -
@sentry/browser (incl. Tracing, Replay, Feedback) 95.69 kB - -
@sentry/browser (incl. Feedback) 40.97 kB - -
@sentry/browser (incl. sendFeedback) 28.91 kB - -
@sentry/browser (incl. FeedbackAsync) 33.84 kB - -
@sentry/react 25.98 kB - -
@sentry/react (incl. Tracing) 42.41 kB - -
@sentry/vue 28.78 kB - -
@sentry/vue (incl. Tracing) 42.24 kB - -
@sentry/svelte 24.29 kB - -
CDN Bundle 25.77 kB - -
CDN Bundle (incl. Tracing) 40.33 kB - -
CDN Bundle (incl. Tracing, Replay) 76.57 kB - -
CDN Bundle (incl. Tracing, Replay, Feedback) 82.06 kB - -
CDN Bundle - uncompressed 75.37 kB - -
CDN Bundle (incl. Tracing) - uncompressed 119.39 kB - -
CDN Bundle (incl. Tracing, Replay) - uncompressed 234.55 kB - -
CDN Bundle (incl. Tracing, Replay, Feedback) - uncompressed 247.31 kB - -
@sentry/nextjs (client) 44.42 kB - -
@sentry/sveltekit (client) 40.85 kB - -
@sentry/node-core 50.02 kB +0.01% +1 B 🔺
@sentry/node 153.06 kB -0.01% -1 B 🔽
@sentry/node - without tracing 91.94 kB - -
@sentry/aws-serverless 105.39 kB - -

View base workflow run

@github-actions
Copy link
Contributor

github-actions bot commented Sep 24, 2025

node-overhead report 🧳

Note: This is a synthetic benchmark with a minimal express app and does not necessarily reflect the real-world performance impact in an application.

Scenario Requests/s % of Baseline Prev. Requests/s Change %
GET Baseline 9,207 - 9,395 -2%
GET With Sentry 1,332 14% 1,361 -2%
GET With Sentry (error only) 5,922 64% 6,068 -2%
POST Baseline 1,176 - 1,198 -2%
POST With Sentry 499 42% 520 -4%
POST With Sentry (error only) 1,037 88% 1,063 -2%
MYSQL Baseline 3,244 - 3,309 -2%
MYSQL With Sentry 426 13% 422 +1%
MYSQL With Sentry (error only) 2,630 81% 2,689 -2%

View base workflow run

@chargome chargome marked this pull request as ready for review September 25, 2025 13:37
@chargome chargome requested a review from billyvg September 25, 2025 13:37
cursor[bot]

This comment was marked as outdated.

Base automatically changed from cg-only-attach-sampled-replayid to develop September 26, 2025 08:09
@chargome chargome requested a review from a team as a code owner September 26, 2025 08:09
@chargome chargome force-pushed the cg-replay-add-buffer-attribute branch from 4fb9c51 to 2238e52 Compare September 26, 2025 09:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

3 participants