mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-16 17:46:45 +00:00
chore: Disable event loop block integration for task runner (#18661)
This commit is contained in:
@@ -15,6 +15,10 @@ type ErrorReporterInitOptions = {
|
||||
environment: string;
|
||||
serverName: string;
|
||||
releaseDate?: Date;
|
||||
|
||||
/** Whether to enable event loop block detection, if Sentry is enabled. */
|
||||
withEventLoopBlockDetection: boolean;
|
||||
|
||||
/**
|
||||
* Function to allow filtering out errors before they are sent to Sentry.
|
||||
* Return true if the error should be filtered out.
|
||||
@@ -83,6 +87,7 @@ export class ErrorReporter {
|
||||
environment,
|
||||
serverName,
|
||||
releaseDate,
|
||||
withEventLoopBlockDetection,
|
||||
}: ErrorReporterInitOptions) {
|
||||
if (inTest) return;
|
||||
|
||||
@@ -126,7 +131,9 @@ export class ErrorReporter {
|
||||
'ContextLines',
|
||||
];
|
||||
|
||||
const eventLoopBlockIntegration = await this.getEventLoopBlockIntegration();
|
||||
const eventLoopBlockIntegration = withEventLoopBlockDetection
|
||||
? await this.getEventLoopBlockIntegration()
|
||||
: [];
|
||||
|
||||
init({
|
||||
dsn,
|
||||
|
||||
Reference in New Issue
Block a user