Skip to content

Conversation

@HazAT
Copy link
Member

@HazAT HazAT commented May 14, 2021

This PR adds the options to Sentry.init to provide an initial Scope the SDK will be started with.

We need this for our Electron SDK to have a Scope already during SDK init (when the native crash handler starts). Potentially this is also going to be useful for dynamic sampling.

@HazAT HazAT self-assigned this May 14, 2021
@HazAT HazAT requested a review from kamilogorek as a code owner May 14, 2021 11:59
Copy link
Member

@AbhiPrasad AbhiPrasad left a comment

Choose a reason for hiding this comment

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

Would be nice to have tests on @sentry/core and @sentry/node as well, but this LGTM.

@github-actions
Copy link
Contributor

github-actions bot commented May 14, 2021

size-limit report

Path Size
@sentry/browser - CDN Bundle (gzipped) 20.67 KB (-0.29% 🔽)
@sentry/browser - Webpack 21.54 KB (-1.88% 🔽)
@sentry/react - Webpack 21.58 KB (-1.88% 🔽)
@sentry/browser + @sentry/tracing - CDN Bundle (gzipped) 28.04 KB (-0.27% 🔽)

Copy link
Contributor

@rhcarvalho rhcarvalho left a comment

Choose a reason for hiding this comment

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

Is this new option supposed to work for other clients too?

Please document the problem it is solving in the PR description ("the why").

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.

5 participants