Skip to content

fix: Do refresh buffered sessions #7931

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

Merged

Conversation

mydea
Copy link
Member

@mydea mydea commented Apr 21, 2023

This adjusts the PR to handle buffered sessions that expire.

Basically, a buffered session should be sampled normally unless it has been converted from a buffered -> session. Only when an error was captured and the session then expires, we do not want to start a new session.

This fixes #7768

@github-actions
Copy link
Contributor

github-actions bot commented Apr 21, 2023

size-limit report 📦

Path Size
@sentry/browser - ES5 CDN Bundle (gzipped + minified) 20.72 KB (-1.44% 🔽)
@sentry/browser - ES5 CDN Bundle (minified) 64.75 KB (-1.39% 🔽)
@sentry/browser - ES6 CDN Bundle (gzipped + minified) 19.28 KB (-1.44% 🔽)
@sentry/browser - ES6 CDN Bundle (minified) 57.23 KB (-1.53% 🔽)
@sentry/browser - Webpack (gzipped + minified) 20.84 KB (-1.56% 🔽)
@sentry/browser - Webpack (minified) 68.2 KB (-1.27% 🔽)
@sentry/react - Webpack (gzipped + minified) 20.87 KB (-1.53% 🔽)
@sentry/nextjs Client - Webpack (gzipped + minified) 48.69 KB (-0.71% 🔽)
@sentry/browser + @sentry/tracing - ES5 CDN Bundle (gzipped + minified) 28.3 KB (-1% 🔽)
@sentry/browser + @sentry/tracing - ES6 CDN Bundle (gzipped + minified) 26.53 KB (-1.08% 🔽)
@sentry/replay ES6 CDN Bundle (gzipped + minified) 45.23 KB (-2.14% 🔽)
@sentry/replay - Webpack (gzipped + minified) 39.18 KB (-2.25% 🔽)
@sentry/browser + @sentry/tracing + @sentry/replay - ES6 CDN Bundle (gzipped + minified) 63.93 KB (-1.75% 🔽)
@sentry/browser + @sentry/replay - ES6 CDN Bundle (gzipped + minified) 56.96 KB (-1.88% 🔽)

@mydea mydea force-pushed the fn/adjust-pr-buffer-session-refresh branch from d9400c3 to 777d471 Compare April 24, 2023 09:30
@mydea mydea merged commit ca4d679 into feat-replay-change-sampling-logic Apr 24, 2023
@mydea mydea deleted the fn/adjust-pr-buffer-session-refresh branch April 24, 2023 09:56
billyvg pushed a commit that referenced this pull request Apr 24, 2023
billyvg pushed a commit that referenced this pull request Apr 25, 2023
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