Skip to content

Commit

Permalink
Add notification telemetry
Browse files Browse the repository at this point in the history
  • Loading branch information
jeanp413 committed Mar 30, 2022
1 parent b794592 commit fce1122
Showing 1 changed file with 53 additions and 0 deletions.
53 changes: 53 additions & 0 deletions src/vs/gitpod/node/gitpodInsightsAppender.ts
Original file line number Diff line number Diff line change
Expand Up @@ -214,6 +214,59 @@ function mapTelemetryData(eventName: string, data: any): RemoteTrackMessage | un
timestamp: data.timestamp
},
};
case 'notification:show':
return {
event: 'vscode_notification',
properties: {
action: 'show',
id: data.id,
source: data.source,
workspaceId: data.workspaceId,
workspaceInstanceId: data.workspaceInstanceId,
sessionID: data.sessionID,
timestamp: data.timestamp
},
};
case 'notification:close':
return {
event: 'vscode_notification',
properties: {
action: 'close',
id: data.id,
source: data.source,
workspaceId: data.workspaceId,
workspaceInstanceId: data.workspaceInstanceId,
sessionID: data.sessionID,
timestamp: data.timestamp
},
};
case 'notification:hide':
return {
event: 'vscode_notification',
properties: {
action: 'hide',
id: data.id,
source: data.source,
workspaceId: data.workspaceId,
workspaceInstanceId: data.workspaceInstanceId,
sessionID: data.sessionID,
timestamp: data.timestamp
},
};
case 'notification:actionExecuted':
return {
event: 'vscode_notification',
properties: {
action: 'actionExecuted',
id: data.id,
source: data.source,
actionLabel: data.actionLabel,
workspaceId: data.workspaceId,
workspaceInstanceId: data.workspaceInstanceId,
sessionID: data.sessionID,
timestamp: data.timestamp
},
};
}

return undefined;
Expand Down

0 comments on commit fce1122

Please sign in to comment.