Skip to content

Conversation

@AbhiPrasad
Copy link
Member

Fixes #3685

The patch updates the @sentry/core baseClient to not send sessions
to Sentry if it is disabled. This makes sessions match the behaviour
of events and integrations (both of which get disabled when the
enabled option is set to false).

Before submitting a pull request, please take a look at our
Contributing guidelines and verify:

  • If you've added code that should be tested, please add tests.
  • Ensure your code lints and the test suite passes (yarn lint) & (yarn test).

@AbhiPrasad AbhiPrasad requested a review from kamilogorek as a code owner June 15, 2021 21:34
@AbhiPrasad AbhiPrasad self-assigned this Jun 15, 2021
@github-actions
Copy link
Contributor

github-actions bot commented Jun 15, 2021

size-limit report

Path Size
@sentry/browser - CDN Bundle (gzipped) 21.01 KB (+0.08% 🔺)
@sentry/browser - Webpack 21.89 KB (+0.11% 🔺)
@sentry/react - Webpack 21.92 KB (+0.11% 🔺)
@sentry/browser + @sentry/tracing - CDN Bundle (gzipped) 28.4 KB (+0.06% 🔺)

Copy link
Contributor

@ahmedetefy ahmedetefy left a comment

Choose a reason for hiding this comment

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

LGTM

Fixes #3685

The patch updates the @sentry/core baseClient to not send sessions
to Sentry if it is disabled. This makes sessions match the behaviour
of events and integrations (both of which get disabled when the
enabled option is set to false).
@AbhiPrasad AbhiPrasad force-pushed the abhi-enabled-session-tracking branch from 22bae37 to 7091397 Compare June 16, 2021 13:42
@AbhiPrasad AbhiPrasad enabled auto-merge (squash) June 16, 2021 13:42
@AbhiPrasad AbhiPrasad merged commit e675c79 into master Jun 16, 2021
@AbhiPrasad AbhiPrasad deleted the abhi-enabled-session-tracking branch June 16, 2021 18:02
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.

Sentry.init starts session tracking even when enabled is set to false

5 participants