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

feat: Prepare Major Release / Toggle session tracking flag #3099

Merged
merged 4 commits into from
Jan 18, 2021

Conversation

HazAT
Copy link
Member

@HazAT HazAT commented Dec 3, 2020

This PR makes session tracking / release health enabled by default for all frontend SDKs.
After this is merged we need to prepare a major version bump.

@HazAT HazAT self-assigned this Dec 3, 2020
Gatsby/Ember/Angular/React/Vue
@github-actions
Copy link
Contributor

github-actions bot commented Dec 3, 2020

size-limit report

Path Size
@sentry/browser - CDN Bundle (gzipped) 19.97 KB (0%)
@sentry/browser - Webpack 20.8 KB (+0.01% 🔺)
@sentry/react - Webpack 20.8 KB (+0.01% 🔺)
@sentry/browser + @sentry/tracing - CDN Bundle (gzipped) 27.12 KB (0%)

@@ -17,6 +17,9 @@ export function InitSentryForEmber(_runtimeConfig: BrowserOptions | undefined) {
assert('Missing configuration for Sentry.', config.sentry);

const initConfig = Object.assign({}, config.sentry, _runtimeConfig || {});
if (initConfig.autoSessionTracking === undefined) {
Copy link
Contributor

Choose a reason for hiding this comment

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

This is unnecessary, as we call Sentry.init which already does that 3 lines below.

@@ -132,6 +132,9 @@ export function init(
if (options.defaultIntegrations === undefined) {
options.defaultIntegrations = defaultIntegrations;
}
if (options.autoSessionTracking === undefined) {
Copy link
Contributor

Choose a reason for hiding this comment

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

I wonder why we call Sentry.init in Ember, but not in Vue

Copy link
Member Author

Choose a reason for hiding this comment

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

In Vue.js we overwrite init to initialize the helper.

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