Skip to content

Commit b8b8507

Browse files
authored
perf(core): Detect event loop blocking (#17805)
1 parent 80513ae commit b8b8507

File tree

3 files changed

+54
-24
lines changed

3 files changed

+54
-24
lines changed

packages/core/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,7 @@
4747
"@n8n/decorators": "workspace:*",
4848
"@n8n/di": "workspace:*",
4949
"@sentry/node": "catalog:",
50+
"@sentry/node-native": "^9.42.1",
5051
"axios": "catalog:",
5152
"callsites": "catalog:",
5253
"chardet": "2.0.0",

packages/core/src/errors/error-reporter.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ import { Service } from '@n8n/di';
44
import type { ReportingOptions } from '@n8n/errors';
55
import type { ErrorEvent, EventHint } from '@sentry/core';
66
import type { NodeOptions } from '@sentry/node';
7+
import { eventLoopBlockIntegration } from '@sentry/node-native';
78
import { AxiosError } from 'axios';
89
import { ApplicationError, ExecutionCancelledError, BaseError } from 'n8n-workflow';
910
import { createHash } from 'node:crypto';
@@ -146,6 +147,7 @@ export class ErrorReporter {
146147
url: true,
147148
},
148149
}),
150+
eventLoopBlockIntegration(),
149151
],
150152
});
151153

pnpm-lock.yaml

Lines changed: 51 additions & 24 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)