Skip to content

Conversation

@timfish
Copy link
Collaborator

@timfish timfish commented Apr 20, 2022

Upgrading to v7 of the Sentry JavaScript SDKs:

  • Migrate enums to strings
  • Migrate away from forget helper
  • Adjust exports for isolatedModules
  • Rewrite transports to use new style API
  • Refactor minidump submission since the underlying SDKs now support attachments!

Closes #496, #481, #487, #489 and #497

timfish added 3 commits April 20, 2022 17:09
- Add new transports
- Rework minidump stuff ready for proper attachment support
@timfish

This comment was marked as resolved.

@timfish timfish force-pushed the feat/v7-javascript branch from 12760c6 to ccffa8b Compare May 24, 2022 13:16
@timfish

This comment was marked as outdated.

@timfish timfish mentioned this pull request Jun 11, 2022
3 tasks
@timfish timfish marked this pull request as ready for review June 20, 2022 16:46
@timfish timfish requested a review from AbhiPrasad June 20, 2022 16:53

// 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) {
Copy link
Member

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?

Copy link
Collaborator Author

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.

@timfish timfish merged commit 203cce8 into getsentry:master Jun 30, 2022
@timfish timfish deleted the feat/v7-javascript branch July 14, 2022 23:42
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.

Missing addAttachment function

2 participants