refactor: Upgrade @sentry/node and @sentry/vue to 9.42.1 (#17753)

This commit is contained in:
Iván Ovejero
2025-07-29 14:59:43 +02:00
committed by GitHub
parent f41a738e80
commit b64c8ad3a4
7 changed files with 439 additions and 494 deletions

View File

@@ -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';

View File

@@ -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,
},
}),
],