mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-18 18:41:14 +00:00
fix(core): Fix Sentry error reporting on task runners (#12495)
This commit is contained in:
@@ -61,10 +61,15 @@ export abstract class BaseCommand extends Command {
|
||||
|
||||
async init(): Promise<void> {
|
||||
this.errorReporter = Container.get(ErrorReporter);
|
||||
await this.errorReporter.init(
|
||||
this.instanceSettings.instanceType,
|
||||
this.globalConfig.sentry.backendDsn,
|
||||
);
|
||||
|
||||
const { backendDsn, n8nVersion, environment, deploymentName } = this.globalConfig.sentry;
|
||||
await this.errorReporter.init({
|
||||
serverType: this.instanceSettings.instanceType,
|
||||
dsn: backendDsn,
|
||||
environment,
|
||||
release: n8nVersion,
|
||||
serverName: deploymentName,
|
||||
});
|
||||
initExpressionEvaluator();
|
||||
|
||||
process.once('SIGTERM', this.onTerminationSignal('SIGTERM'));
|
||||
|
||||
Reference in New Issue
Block a user