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

Migrate to Sentry JavaScript V8 #675

Merged
merged 26 commits into from
Jul 31, 2024
Merged

Migrate to Sentry JavaScript V8 #675

merged 26 commits into from
Jul 31, 2024

Conversation

lucas-zimerman
Copy link
Collaborator

@lucas-zimerman lucas-zimerman commented Jun 17, 2024

This is a major break change PR for supporting Sentry Javascript V8, for the moment the largest changes are:

To Sentry users:

  • Drop support for Angular 13
  • Users using the package @sentry/angular-ivy will have to replace it by @sentry/angular.
  • Break changes on how to start a Span.
  • Sentry integrations have changed the way the are loaded.
  new Sentry.Replay(...) -> Sentry.replayIntegration(...)
  new Sentry.BrowserTracing(...) -> browserTracingIntegration(...)
  • Hud no longer exists, instead, use getClient()
  • Removed all deprecated functions:
addGlobalEventProcessor,
configureScope,
  getCurrentScope,
  getHubFromCarrier,
  getCurrentHub,
  Hub,
startTransaction,

Internally:

TODO:

@lucas-zimerman lucas-zimerman marked this pull request as ready for review July 4, 2024 13:40
@lucas-zimerman lucas-zimerman added the Breaking-change should go in a major release (breaks apps, changes default configs in a major way) label Jul 4, 2024
CHANGELOG.md Outdated Show resolved Hide resolved
CHANGELOG.md Outdated Show resolved Hide resolved
MIGRATION.md Outdated Show resolved Hide resolved
package.json Outdated Show resolved Hide resolved
package.json Outdated Show resolved Hide resolved
package.json Outdated Show resolved Hide resolved
src/index.ts Outdated Show resolved Hide resolved
src/sdk.ts Outdated Show resolved Hide resolved
src/options.ts Outdated Show resolved Hide resolved
test/sdk.test.ts Outdated Show resolved Hide resolved
test/testutils.ts Outdated Show resolved Hide resolved
@krystofwoldrich
Copy link
Member

Thank you for the massive upgrade to JS V8!

Overall it looks great. I left a few comments which we should resolve before we can merge this.

@krystofwoldrich
Copy link
Member

One more comment remains. The integrations. After that I'll it should be good.

test/sdk.test.ts Outdated Show resolved Hide resolved
@krystofwoldrich
Copy link
Member

I added a small comment to the test, but it's not blocking.

@krystofwoldrich
Copy link
Member

Looks good, thank you! 🚀

lucas-zimerman and others added 3 commits July 31, 2024 11:38
* apply break changes to code, update yarn from v6

* port sample v6

* bump v5

* bump v4

* bump v3

* bump vue

* ios test

* expose registerSpanErrorInstrumentation and add changelog/migration guide

* Apply suggestions from code review

Co-authored-by: Krystof Woldrich <[email protected]>

* removed testutils.ts, migration.md, altered changelog with requested changes.  removed setup from integrations. Added check for TextEncoder.

* forgot to add textEncoders.ts

* ordering issue

* add back isolationscope

* requested changes

* yarn
 fix

* requested changes

---------

Co-authored-by: Krystof Woldrich <[email protected]>
@lucas-zimerman lucas-zimerman merged commit 44709b3 into main Jul 31, 2024
12 of 13 checks passed
@lucas-zimerman lucas-zimerman deleted the feat/js8 branch July 31, 2024 18:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Breaking-change should go in a major release (breaks apps, changes default configs in a major way)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Angular 18 Support.
2 participants