Skip to content

Commit 78f6c8c

Browse files
authored
More telemetry cleanup (microsoft#165952)
1 parent ad9a4ab commit 78f6c8c

File tree

2 files changed

+3
-6
lines changed

2 files changed

+3
-6
lines changed

src/vs/workbench/api/common/extHostTelemetry.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -145,13 +145,13 @@ export class ExtHostTelemetryLogger {
145145
// TODO @lramos15 should this be up to the implementer and not done here?
146146
let updatedData = data.properties ?? data;
147147

148+
// We don't clean measurements since they are just numbers
149+
updatedData = cleanData(updatedData, []);
150+
148151
if (this._appender.additionalCommonProperties) {
149152
updatedData = mixin(updatedData, this._appender.additionalCommonProperties);
150153
}
151154

152-
// We don't clean measurements since they are just numbers
153-
updatedData = cleanData(updatedData, []);
154-
155155
if (!this._appender.ignoreBuiltInCommonProperties) {
156156
updatedData = mixin(updatedData, this._commonProperties);
157157
}

src/vs/workbench/contrib/telemetry/browser/telemetry.contribution.ts

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,6 @@ export class TelemetryContribution extends Disposable implements IWorkbenchContr
7777

7878
type WorkspaceLoadClassification = {
7979
owner: 'bpasero';
80-
userAgent: { classification: 'SystemMetaData'; purpose: 'FeatureInsight'; comment: 'The user agent as reported by `navigator.userAgent` by Electron or the web browser.' };
8180
emptyWorkbench: { classification: 'SystemMetaData'; purpose: 'FeatureInsight'; isMeasurement: true; comment: 'Whether a folder or workspace is opened or not.' };
8281
windowSize: WindowSizeFragment;
8382
'workbench.filesToOpenOrCreate': { classification: 'SystemMetaData'; purpose: 'FeatureInsight'; isMeasurement: true; comment: 'Number of files that should open or be created.' };
@@ -94,7 +93,6 @@ export class TelemetryContribution extends Disposable implements IWorkbenchContr
9493
};
9594

9695
type WorkspaceLoadEvent = {
97-
userAgent: string;
9896
windowSize: { innerHeight: number; innerWidth: number; outerHeight: number; outerWidth: number };
9997
emptyWorkbench: boolean;
10098
'workbench.filesToOpenOrCreate': number;
@@ -110,7 +108,6 @@ export class TelemetryContribution extends Disposable implements IWorkbenchContr
110108
};
111109

112110
telemetryService.publicLog2<WorkspaceLoadEvent, WorkspaceLoadClassification>('workspaceLoad', {
113-
userAgent: navigator.userAgent,
114111
windowSize: { innerHeight: window.innerHeight, innerWidth: window.innerWidth, outerHeight: window.outerHeight, outerWidth: window.outerWidth },
115112
emptyWorkbench: contextService.getWorkbenchState() === WorkbenchState.EMPTY,
116113
'workbench.filesToOpenOrCreate': filesToOpenOrCreate && filesToOpenOrCreate.length || 0,

0 commit comments

Comments
 (0)