Skip to content

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
@HazAT HazAT requested a review from kamilogorek as a code owner December 3, 2020 11:46
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%)

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.

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.

3 participants