Skip to content

Commit 3a3683c

Browse files
committed
installation-telemetry: respect sendCustomerID setting
1 parent 19ff759 commit 3a3683c

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

components/server/src/installation-admin/telemetry-data-provider.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,12 @@ export class InstallationAdminTelemetryDataProvider {
2626
totalUsers: await this.userDb.getUserCount(true),
2727
totalWorkspaces: await this.workspaceDb.getWorkspaceCount(),
2828
totalInstances: await this.workspaceDb.getInstanceCount(),
29-
customerID: this.licenseEvaluator.getLicenseData().payload.customerID,
3029
} as TelemetryData;
30+
31+
if (data.installationAdmin.settings.sendCustomerID) {
32+
data.customerID = this.licenseEvaluator.getLicenseData().payload.customerID;
33+
}
34+
3135
return data;
3236
} finally {
3337
span.finish();

0 commit comments

Comments
 (0)