mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-17 18:12:04 +00:00
chore: Disable event loop block integration for task runner (#18661)
This commit is contained in:
@@ -136,6 +136,7 @@ describe('TaskRunnerSentry', () => {
|
|||||||
environment: 'local',
|
environment: 'local',
|
||||||
serverName: 'test',
|
serverName: 'test',
|
||||||
serverType: 'task_runner',
|
serverType: 'task_runner',
|
||||||
|
withEventLoopBlockDetection: false,
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|||||||
@@ -26,6 +26,7 @@ export class TaskRunnerSentry {
|
|||||||
environment,
|
environment,
|
||||||
serverName: deploymentName,
|
serverName: deploymentName,
|
||||||
beforeSendFilter: this.filterOutUserCodeErrors,
|
beforeSendFilter: this.filterOutUserCodeErrors,
|
||||||
|
withEventLoopBlockDetection: false,
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -90,6 +90,7 @@ export abstract class BaseCommand<F = never> {
|
|||||||
release: `n8n@${N8N_VERSION}`,
|
release: `n8n@${N8N_VERSION}`,
|
||||||
serverName: deploymentName,
|
serverName: deploymentName,
|
||||||
releaseDate: N8N_RELEASE_DATE,
|
releaseDate: N8N_RELEASE_DATE,
|
||||||
|
withEventLoopBlockDetection: true,
|
||||||
});
|
});
|
||||||
|
|
||||||
process.once('SIGTERM', this.onTerminationSignal('SIGTERM'));
|
process.once('SIGTERM', this.onTerminationSignal('SIGTERM'));
|
||||||
|
|||||||
@@ -15,6 +15,10 @@ type ErrorReporterInitOptions = {
|
|||||||
environment: string;
|
environment: string;
|
||||||
serverName: string;
|
serverName: string;
|
||||||
releaseDate?: Date;
|
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.
|
* Function to allow filtering out errors before they are sent to Sentry.
|
||||||
* Return true if the error should be filtered out.
|
* Return true if the error should be filtered out.
|
||||||
@@ -83,6 +87,7 @@ export class ErrorReporter {
|
|||||||
environment,
|
environment,
|
||||||
serverName,
|
serverName,
|
||||||
releaseDate,
|
releaseDate,
|
||||||
|
withEventLoopBlockDetection,
|
||||||
}: ErrorReporterInitOptions) {
|
}: ErrorReporterInitOptions) {
|
||||||
if (inTest) return;
|
if (inTest) return;
|
||||||
|
|
||||||
@@ -126,7 +131,9 @@ export class ErrorReporter {
|
|||||||
'ContextLines',
|
'ContextLines',
|
||||||
];
|
];
|
||||||
|
|
||||||
const eventLoopBlockIntegration = await this.getEventLoopBlockIntegration();
|
const eventLoopBlockIntegration = withEventLoopBlockDetection
|
||||||
|
? await this.getEventLoopBlockIntegration()
|
||||||
|
: [];
|
||||||
|
|
||||||
init({
|
init({
|
||||||
dsn,
|
dsn,
|
||||||
|
|||||||
Reference in New Issue
Block a user