Skip to content

Commit f127c6c

Browse files
authored
Add telemetry comments (microsoft#155503)
* add telemetry comments * update comments
1 parent 4b0d6f3 commit f127c6c

File tree

5 files changed

+11
-6
lines changed

5 files changed

+11
-6
lines changed

src/vs/platform/update/electron-main/abstractUpdateService.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,8 @@ export function createUpdateURL(platform: string, quality: string, productServic
2020

2121
export type UpdateNotAvailableClassification = {
2222
owner: 'joaomoreno';
23-
explicit: { classification: 'SystemMetaData'; purpose: 'FeatureInsight'; isMeasurement: true };
23+
explicit: { classification: 'SystemMetaData'; purpose: 'FeatureInsight'; isMeasurement: true; comment: 'Whether the user has manually checked for updates, or this was an automatic check.' };
24+
comment: 'This is used to understand how often VS Code pings the update server for an update and there\'s none available.';
2425
};
2526

2627
export abstract class AbstractUpdateService implements IUpdateService {

src/vs/platform/update/electron-main/updateService.darwin.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,8 @@ export class DarwinUpdateService extends AbstractUpdateService {
9393

9494
type UpdateDownloadedClassification = {
9595
owner: 'joaomoreno';
96-
version: { classification: 'SystemMetaData'; purpose: 'FeatureInsight' };
96+
version: { classification: 'SystemMetaData'; purpose: 'FeatureInsight'; comment: 'The version number of the new VS Code that has been downloaded.' };
97+
comment: 'This is used to know how often VS Code has successfully downloaded the update.';
9798
};
9899
this.telemetryService.publicLog2<{ version: String }, UpdateDownloadedClassification>('update:downloaded', { version: update.version });
99100

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -745,7 +745,8 @@ export class ExtHostSCM implements ExtHostSCMShape {
745745
type TEvent = { extensionId: string };
746746
type TMeta = {
747747
owner: 'joaomoreno';
748-
extensionId: { classification: 'SystemMetaData'; purpose: 'FeatureInsight' };
748+
extensionId: { classification: 'SystemMetaData'; purpose: 'FeatureInsight'; comment: 'The ID of the extension contributing to the Source Control API.' };
749+
comment: 'This is used to know what extensions contribute to the Source Control API.';
749750
};
750751
this._telemetry.$publicLog2<TEvent, TMeta>('api/scm/createSourceControl', {
751752
extensionId: extension.identifier.value,

src/vs/workbench/browser/parts/views/viewPane.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,8 +52,9 @@ export interface IViewPaneOptions extends IPaneOptions {
5252

5353
type WelcomeActionClassification = {
5454
owner: 'joaomoreno';
55-
viewId: { classification: 'SystemMetaData'; purpose: 'FeatureInsight' };
56-
uri: { classification: 'SystemMetaData'; purpose: 'FeatureInsight' };
55+
viewId: { classification: 'SystemMetaData'; purpose: 'FeatureInsight'; comment: 'The view ID in which the welcome view button was clicked.' };
56+
uri: { classification: 'SystemMetaData'; purpose: 'FeatureInsight'; comment: 'The URI of the command ran by the result of clicking the button.' };
57+
comment: 'This is used to know when users click on the welcome view buttons.';
5758
};
5859

5960
const viewPaneContainerExpandedIcon = registerIcon('view-pane-container-expanded', Codicon.chevronDown, nls.localize('viewPaneContainerExpandedIcon', 'Icon for an expanded view pane container.'));

src/vs/workbench/services/extensions/browser/extensionUrlHandler.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,8 @@ export interface ExtensionUrlHandlerEvent {
8383

8484
export interface ExtensionUrlHandlerClassification extends GDPRClassification<ExtensionUrlHandlerEvent> {
8585
owner: 'joaomoreno';
86-
readonly extensionId: { classification: 'PublicNonPersonalData'; purpose: 'FeatureInsight' };
86+
readonly extensionId: { classification: 'PublicNonPersonalData'; purpose: 'FeatureInsight'; comment: 'The ID of the extension that should handle the URI' };
87+
comment: 'This is used to understand the drop funnel of extension URI handling by the OS & VS Code.';
8788
}
8889

8990
/**

0 commit comments

Comments
 (0)