chore(core): Stop reporting errors to Sentry for older releases (no-changelog) (#13323)

This commit is contained in:
कारतोफ्फेलस्क्रिप्ट™
2025-02-20 12:38:54 +01:00
committed by GitHub
parent aae55fe7ac
commit ac1f651905
7 changed files with 74 additions and 7 deletions

View File

@@ -63,6 +63,7 @@ export abstract class BaseCommand extends Command {
async init(): Promise<void> {
this.errorReporter = Container.get(ErrorReporter);
const { releaseDate } = this.globalConfig.generic;
const { backendDsn, n8nVersion, environment, deploymentName } = this.globalConfig.sentry;
await this.errorReporter.init({
serverType: this.instanceSettings.instanceType,
@@ -70,6 +71,7 @@ export abstract class BaseCommand extends Command {
environment,
release: n8nVersion,
serverName: deploymentName,
releaseDate,
});
initExpressionEvaluator();
@@ -294,6 +296,8 @@ export abstract class BaseCommand extends Command {
await this.shutdownService.waitForShutdown();
await this.errorReporter.shutdown();
await this.stopProcess();
clearTimeout(forceShutdownTimer);