-
-
Notifications
You must be signed in to change notification settings - Fork 31
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
Conversation
Co-authored-by: Krystof Woldrich <[email protected]>
…changes. removed setup from integrations. Added check for TextEncoder.
Sentry.configureScope(scope => { | ||
scope.clearBreadcrumbs(); | ||
}); | ||
Sentry.getGlobalScope().clearBreadcrumbs(); |
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.
H: To keep the same behavior as in v7 we need to clear all the scopes. The global Sentry.addBreadcrumb
uses isolationScope
Sentry.getGlobalScope().clearBreadcrumbs(); | |
Sentry.getGlobalScope().clearBreadcrumbs(); | |
Sentry.getIsolationScope().clearBreadcrumbs(); | |
Sentry.getCurrentScope().clearBreadcrumbs(); |
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.
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?
This PR needs a rebase/merge of #675, to remove the duplicate changes, already done in the predecessor PR. |
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.
Besides the clearBreadcrumb
looks good. Thank you!
* 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]>
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