Skip to content

Commit 6bbf476

Browse files
committed
[code] Track vsc_opened when IDE is open
1 parent dc34b94 commit 6bbf476

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed

components/server/src/workspace/workspace-starter.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -691,6 +691,7 @@ export class WorkspaceStarter {
691691
"function:getEnvVars",
692692
"function:setEnvVar",
693693
"function:deleteEnvVar",
694+
"function:trackEvent",
694695

695696
"resource:"+ScopedResourceGuard.marshalResourceScope({kind: "workspace", subjectID: workspace.id, operations: ["get", "update"]}),
696697
"resource:"+ScopedResourceGuard.marshalResourceScope({kind: "workspaceInstance", subjectID: instance.id, operations: ["get", "update", "delete"]}),

components/supervisor/frontend/src/index.ts

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -137,6 +137,15 @@ const loadingIDE = new Promise(resolve => window.addEventListener('DOMContentLoa
137137
ideService.onDidChange(() => {
138138
updateLoadingState();
139139
updateCurrentFrame();
140+
141+
window.gitpod.service.server.trackEvent({
142+
event: "status_rendered",
143+
properties: {
144+
workspaceId: gitpodServiceClient.info.latestInstance?.workspaceId,
145+
phase: `ide-${ideService.state}`,
146+
error: ideService.failureCause?.message,
147+
},
148+
});
140149
});
141150
//#endregion
142151

0 commit comments

Comments
 (0)