Skip to content

Commit

Permalink
feat(core): Add plan name to telemetry (no-changelog)
Browse files Browse the repository at this point in the history
  • Loading branch information
krynble committed Sep 28, 2023
1 parent 0bc33b1 commit f36c900
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 0 deletions.
2 changes: 2 additions & 0 deletions packages/cli/src/Interfaces.ts
Original file line number Diff line number Diff line change
Expand Up @@ -348,6 +348,8 @@ export interface IDiagnosticInfo {
smtp_set_up: boolean;
ldap_allowed: boolean;
saml_enabled: boolean;
licensePlanName?: string;
licenseTenantId?: number;
}

export interface ITelemetryUserDeletionData {
Expand Down
2 changes: 2 additions & 0 deletions packages/cli/src/InternalHooks.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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([
Expand Down
2 changes: 2 additions & 0 deletions packages/cli/src/Server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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') {
Expand Down

0 comments on commit f36c900

Please sign in to comment.