mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-17 01:56:46 +00:00
refactor: Upgrade @sentry/node and @sentry/vue to 9.42.1 (#17753)
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
import type { Logger } from '@n8n/backend-common';
|
||||
import { QueryFailedError } from '@n8n/typeorm';
|
||||
import type { ErrorEvent } from '@sentry/types';
|
||||
import type { ErrorEvent } from '@sentry/core';
|
||||
import { AxiosError } from 'axios';
|
||||
import { mock } from 'jest-mock-extended';
|
||||
import { ApplicationError, BaseError } from 'n8n-workflow';
|
||||
|
||||
@@ -2,8 +2,8 @@ import { inTest, Logger } from '@n8n/backend-common';
|
||||
import type { InstanceType } from '@n8n/constants';
|
||||
import { Service } from '@n8n/di';
|
||||
import type { ReportingOptions } from '@n8n/errors';
|
||||
import type { ErrorEvent, EventHint } from '@sentry/core';
|
||||
import type { NodeOptions } from '@sentry/node';
|
||||
import type { ErrorEvent, EventHint } from '@sentry/types';
|
||||
import { AxiosError } from 'axios';
|
||||
import { ApplicationError, ExecutionCancelledError, BaseError } from 'n8n-workflow';
|
||||
import { createHash } from 'node:crypto';
|
||||
@@ -104,7 +104,7 @@ export class ErrorReporter {
|
||||
// eslint-disable-next-line @typescript-eslint/unbound-method
|
||||
this.report = this.defaultReport;
|
||||
} else {
|
||||
setTimeout(checkForExpiration, ONE_DAY_IN_MS);
|
||||
this.expirationTimer = setTimeout(checkForExpiration, ONE_DAY_IN_MS);
|
||||
}
|
||||
};
|
||||
checkForExpiration();
|
||||
@@ -130,7 +130,7 @@ export class ErrorReporter {
|
||||
dsn,
|
||||
release,
|
||||
environment,
|
||||
enableTracing: false,
|
||||
tracesSampleRate: 0,
|
||||
serverName,
|
||||
beforeBreadcrumb: () => null,
|
||||
beforeSend: this.beforeSend.bind(this) as NodeOptions['beforeSend'],
|
||||
@@ -144,7 +144,6 @@ export class ErrorReporter {
|
||||
headers: false,
|
||||
query_string: false,
|
||||
url: true,
|
||||
user: false,
|
||||
},
|
||||
}),
|
||||
],
|
||||
|
||||
Reference in New Issue
Block a user