feat(core): Add plan name to telemetry (no-changelog) (#7296)

Github issue / Community forum post (link here to close automatically):
This commit is contained in:
Omar Ajoue
2023-09-29 15:41:32 +02:00
committed by GitHub
parent 6a1557bc50
commit ec0379378e
4 changed files with 80 additions and 0 deletions

View File

@@ -348,6 +348,8 @@ export interface IDiagnosticInfo {
smtp_set_up: boolean;
ldap_allowed: boolean;
saml_enabled: boolean;
licensePlanName?: string;
licenseTenantId?: number;
}
export interface ITelemetryUserDeletionData {

View File

@@ -97,6 +97,8 @@ export class InternalHooks implements IInternalHooksClass {
smtp_set_up: diagnosticInfo.smtp_set_up,
ldap_allowed: diagnosticInfo.ldap_allowed,
saml_enabled: diagnosticInfo.saml_enabled,
license_plan_name: diagnosticInfo.licensePlanName,
license_tenant_id: diagnosticInfo.licenseTenantId,
};
return Promise.all([

View File

@@ -410,6 +410,8 @@ export class Server extends AbstractServer {
smtp_set_up: config.getEnv('userManagement.emails.mode') === 'smtp',
ldap_allowed: isLdapCurrentAuthenticationMethod(),
saml_enabled: isSamlCurrentAuthenticationMethod(),
licensePlanName: Container.get(License).getPlanName(),
licenseTenantId: config.getEnv('license.tenantId'),
};
if (inDevelopment && process.env.N8N_DEV_RELOAD === 'true') {