Skip to content

Commit

Permalink
Add telemetry for user config and extensions
Browse files Browse the repository at this point in the history
  • Loading branch information
jeanp413 authored and filiptronicek committed Mar 30, 2022
1 parent 3772e7d commit f687ab5
Showing 1 changed file with 61 additions and 0 deletions.
61 changes: 61 additions & 0 deletions src/vs/gitpod/node/gitpodInsightsAppender.ts
Original file line number Diff line number Diff line change
Expand Up @@ -267,6 +267,67 @@ function mapTelemetryData(eventName: string, data: any): RemoteTrackMessage | un
timestamp: data.timestamp
},
};
case 'settingsEditor.settingModified':
return {
event: 'vscode_update_configuration',
properties: {
key: data.key,
target: data.target,
workspaceId: data.workspaceId,
workspaceInstanceId: data.workspaceInstanceId,
sessionID: data.sessionID,
timestamp: data.timestamp
},
};
case 'extensionGallery:install':
return {
event: 'vscode_extension_gallery',
properties: {
kind: 'install',
id: data.id,
workspaceId: data.workspaceId,
workspaceInstanceId: data.workspaceInstanceId,
sessionID: data.sessionID,
timestamp: data.timestamp
},
};
case 'extensionGallery:update':
return {
event: 'vscode_extension_gallery',
properties: {
kind: 'update',
id: data.id,
workspaceId: data.workspaceId,
workspaceInstanceId: data.workspaceInstanceId,
sessionID: data.sessionID,
timestamp: data.timestamp
},
};
case 'extensionGallery:uninstall':
return {
event: 'vscode_extension_gallery',
properties: {
kind: 'uninstall',
id: data.id,
workspaceId: data.workspaceId,
workspaceInstanceId: data.workspaceInstanceId,
sessionID: data.sessionID,
timestamp: data.timestamp
},
};
case 'galleryService:query':
return {
event: 'vscode_extension_gallery',
properties: {
kind: 'query',
statusCode: data.statusCode,
count: data.count,
workspaceId: data.workspaceId,
workspaceInstanceId: data.workspaceInstanceId,
sessionID: data.sessionID,
timestamp: data.timestamp
},
};
}

return undefined;
Expand Down

0 comments on commit f687ab5

Please sign in to comment.