Skip to content
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

fix(release health): Only create sessions if the correct methods are defined #3281

Merged
merged 1 commit into from Mar 5, 2021

Conversation

lobsterkatie
Copy link
Member

There are edge cases (see #3207 and #3234) where the version of @sentry/browser loaded on a page can be >= 6.0.0 and the version of @sentry/hub loaded can be < 5.27.0. When this happens, the former calls hub.startSession() but the latter doesn't have such a method, and an error is thrown. This protects against that possibility.

@github-actions
Copy link
Contributor

github-actions bot commented Feb 25, 2021

size-limit report

Path Size
@sentry/browser - CDN Bundle (gzipped) 20.29 KB (+0.05% 🔺)
@sentry/browser - Webpack 21.19 KB (+0.06% 🔺)
@sentry/react - Webpack 21.23 KB (+0.06% 🔺)
@sentry/browser + @sentry/tracing - CDN Bundle (gzipped) 27.37 KB (+0.03% 🔺)

@lobsterkatie lobsterkatie force-pushed the kmclb-try-catch-start-session branch from 805b3c5 to 48b53f5 Compare March 1, 2021 17:39
@lobsterkatie lobsterkatie force-pushed the kmclb-try-catch-start-session branch from 48b53f5 to 99440a3 Compare March 3, 2021 23:32
@lobsterkatie lobsterkatie merged commit 5997e04 into master Mar 5, 2021
@lobsterkatie lobsterkatie deleted the kmclb-try-catch-start-session branch March 5, 2021 03:19
This was referenced Mar 11, 2021
This was referenced Mar 15, 2021
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.

None yet

2 participants