-
-
Notifications
You must be signed in to change notification settings - Fork 60
feat: Update to v7 JavaScript SDKs #471
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
Conversation
92344a3 to
9b6e00f
Compare
This comment was marked as resolved.
This comment was marked as resolved.
12760c6 to
ccffa8b
Compare
This comment was marked as outdated.
This comment was marked as outdated.
|
|
||
| // We handle beforeSend and sampleRate manually here because native crashes do not go through @sentry/core | ||
| const { beforeSend, sampleRate } = options; | ||
| if (typeof sampleRate === 'number' && Math.random() > sampleRate) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why did we get rid of this logic here?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
beforeSend and sampleRate handling now all occur in @sentry/core.
This only existed before because native crashes were not sent through the underlying JavaScript SDK and were instead hacked on top of the transport.
Upgrading to v7 of the Sentry JavaScript SDKs:
forgethelperisolatedModulesCloses #496, #481, #487, #489 and #497