Skip to content
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

feat: Update to v7 JavaScript SDKs #471

Merged
merged 25 commits into from
Jun 30, 2022

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

- Add new transports
- Rework minidump stuff ready for proper attachment support
@timfish

This comment was marked as resolved.

@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
src/main/context.ts Show resolved Hide resolved

// 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