Skip to content

Commit 8d962ad

Browse files
committed
Add 'product' common property to telemetry events
1 parent a0a1bd8 commit 8d962ad

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

src/vs/platform/telemetry/node/commonProperties.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import * as os from 'os';
88
import * as uuid from 'vs/base/common/uuid';
99
import { readFile } from 'vs/base/node/pfs';
1010

11-
export function resolveCommonProperties(commit: string | undefined, version: string | undefined, machineId: string | undefined, installSourcePath: string): Promise<{ [name: string]: string | undefined; }> {
11+
export function resolveCommonProperties(commit: string | undefined, version: string | undefined, machineId: string | undefined, installSourcePath: string, product?: string): Promise<{ [name: string]: string | undefined; }> {
1212
const result: { [name: string]: string | undefined; } = Object.create(null);
1313
// __GDPR__COMMON__ "common.machineId" : { "endPoint": "MacAddressHash", "classification": "EndUserPseudonymizedInformation", "purpose": "FeatureInsight" }
1414
result['common.machineId'] = machineId;
@@ -26,6 +26,8 @@ export function resolveCommonProperties(commit: string | undefined, version: str
2626
result['common.nodePlatform'] = process.platform;
2727
// __GDPR__COMMON__ "common.nodeArch" : { "classification": "SystemMetaData", "purpose": "PerformanceAndHealth" }
2828
result['common.nodeArch'] = process.arch;
29+
// __GDPR__COMMON__ "common.product" : { "classification": "SystemMetaData", "purpose": "PerformanceAndHealth" }
30+
result['common.product'] = product || 'desktop';
2931

3032
// dynamic properties which value differs on each call
3133
let seq = 0;

0 commit comments

Comments
 (0)