Update dependency @sentry/browser to v8 (#12567)
* Update dependency @sentry/browser to v8 * Migrate Signed-off-by: Michael Telatynski <7t3chguy@gmail.com> * prettier Signed-off-by: Michael Telatynski <7t3chguy@gmail.com> --------- Signed-off-by: Michael Telatynski <7t3chguy@gmail.com> Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: Michael Telatynski <7t3chguy@gmail.com>
This commit is contained in:
parent
81cd53a225
commit
6fedf89eaa
3 changed files with 65 additions and 90 deletions
|
@ -205,16 +205,16 @@ export async function initSentry(sentryConfig: IConfigOptions["sentry"]): Promis
|
|||
if (!sentryConfig) return;
|
||||
// Only enable Integrations.GlobalHandlers, which hooks uncaught exceptions, if automaticErrorReporting is true
|
||||
const integrations: Integration[] = [
|
||||
new Sentry.Integrations.InboundFilters(),
|
||||
new Sentry.Integrations.FunctionToString(),
|
||||
new Sentry.Integrations.Breadcrumbs(),
|
||||
new Sentry.Integrations.HttpContext(),
|
||||
new Sentry.Integrations.Dedupe(),
|
||||
Sentry.inboundFiltersIntegration(),
|
||||
Sentry.functionToStringIntegration(),
|
||||
Sentry.breadcrumbsIntegration(),
|
||||
Sentry.httpContextIntegration(),
|
||||
Sentry.dedupeIntegration(),
|
||||
];
|
||||
|
||||
if (SettingsStore.getValue("automaticErrorReporting")) {
|
||||
integrations.push(new Sentry.Integrations.GlobalHandlers({ onerror: false, onunhandledrejection: true }));
|
||||
integrations.push(new Sentry.Integrations.TryCatch());
|
||||
integrations.push(Sentry.globalHandlersIntegration({ onerror: false, onunhandledrejection: true }));
|
||||
integrations.push(Sentry.browserApiErrorsIntegration());
|
||||
}
|
||||
|
||||
Sentry.init({
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue