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

Prepare Samples for Sentry Javascript V8 #686

Merged
merged 18 commits into from
Jul 31, 2024

Conversation

lucas-zimerman
Copy link
Collaborator

@lucas-zimerman lucas-zimerman commented Jul 3, 2024

This is a separated PR so that the main PR wouldn't be too hard to review.

In this PR i bump all samples with Sentry Javascript V8 and validated each of them.

This PR will only contain changes on the samples, mainly upgrading Angular since version 13 is no longer supported, updating ionic/angular due to a bug with the old version, and replaced some Sentry functions to use the new naming scheme.

#skip-changelog

@lucas-zimerman lucas-zimerman marked this pull request as ready for review July 3, 2024 20:46
@lucas-zimerman lucas-zimerman changed the title Feat/v8 update samples Prepare Samples for Sentry Javascript V8 Jul 3, 2024
Sentry.configureScope(scope => {
scope.clearBreadcrumbs();
});
Sentry.getGlobalScope().clearBreadcrumbs();
Copy link
Member

@krystofwoldrich krystofwoldrich Jul 12, 2024

Choose a reason for hiding this comment

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

H: To keep the same behavior as in v7 we need to clear all the scopes. The global Sentry.addBreadcrumb uses isolationScope

Suggested change
Sentry.getGlobalScope().clearBreadcrumbs();
Sentry.getGlobalScope().clearBreadcrumbs();
Sentry.getIsolationScope().clearBreadcrumbs();
Sentry.getCurrentScope().clearBreadcrumbs();

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

I believe that was the code generated by the migration tool.
Ideally we should expose clearBreadcrumbs on the SDK and then it clears on all 3 scopes, what do you think?

@krystofwoldrich
Copy link
Member

This PR needs a rebase/merge of #675, to remove the duplicate changes, already done in the predecessor PR.

Copy link
Member

@krystofwoldrich krystofwoldrich left a comment

Choose a reason for hiding this comment

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

Besides the clearBreadcrumb looks good. Thank you!

@lucas-zimerman lucas-zimerman merged commit d02e0e3 into feat/js8 Jul 31, 2024
12 checks passed
@lucas-zimerman lucas-zimerman deleted the feat/v8-update-samples branch July 31, 2024 14:38
lucas-zimerman added a commit that referenced this pull request Jul 31, 2024
* migrate V8 initial commit

* add polyfill, changed integrations structure

* format prettier and update prettier

* remove enable out of memory and update packages

* update jest, replace scope with scopeSync

* fix deprecated expect tests

* fix test build rule

* fix default integrations init. Fix SDK tests

* fix sdkinfo tests

* fix release tests

* fix native options, rewrite frames and webview tests

* lint

* isolate race condition

* nit build errors

* 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

* add missing get scope

* yarn fix

* Prepare Samples for Sentry Javascript V8 (#686)

* 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]>

* requested changes

* test download artifact v4

---------

Co-authored-by: Krystof Woldrich <[email protected]>
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.

2 participants