chore(core): Upgrade backend @sentry packages to 8.42.0 (#12061)

This commit is contained in:
Tomi Turtiainen
2024-12-10 14:13:11 +02:00
committed by GitHub
parent 43009b6aa8
commit db09d0e77e
10 changed files with 703 additions and 106 deletions

View File

@@ -35,7 +35,6 @@
},
"dependencies": {
"@n8n/config": "workspace:*",
"@sentry/integrations": "catalog:",
"@sentry/node": "catalog:",
"acorn": "8.14.0",
"acorn-walk": "8.3.4",

View File

@@ -1,6 +1,12 @@
import { RewriteFrames } from '@sentry/integrations';
import { init, setTag, captureException, close } from '@sentry/node';
import type { ErrorEvent, EventHint } from '@sentry/types';
import {
init,
setTag,
captureException,
close,
rewriteFramesIntegration,
type EventHint,
type ErrorEvent,
} from '@sentry/node';
import * as a from 'assert/strict';
import { createHash } from 'crypto';
import { ApplicationError } from 'n8n-workflow';
@@ -52,7 +58,7 @@ export class ErrorReporter {
beforeSend: async (event, hint) => await this.beforeSend(event, hint),
integrations: (integrations) => [
...integrations.filter(({ name }) => ENABLED_INTEGRATIONS.includes(name)),
new RewriteFrames({ root: process.cwd() }),
rewriteFramesIntegration({ root: process.cwd() }),
],
});