Skip to content

Commit

Permalink
telemetry for having workspace contents, #9
Browse files Browse the repository at this point in the history
  • Loading branch information
jrieken committed Nov 16, 2021
1 parent 5e29167 commit 34d699e
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion client/src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -192,10 +192,16 @@ async function _startServer(extensionUri: vscode.Uri, supportedLanguages: Suppor
"init" : {
"numOfFiles" : { "classification": "SystemMetaData", "purpose": "FeatureInsight", "isMeasurement": true },
"indexSize" : { "classification": "SystemMetaData", "purpose": "FeatureInsight", "isMeasurement": true },
"hasWorkspaceContents" : { "classification": "SystemMetaData", "purpose": "FeatureInsight", "isMeasurement": true },
"duration" : { "classification": "SystemMetaData", "purpose": "FeatureInsight", "isMeasurement": true }
}
*/
telemetry.sendTelemetryEvent('init', undefined, { numOfFiles: uris.length, indexSize: hasFullWorkspaceContents ? -1 : size, duration: performance.now() - t1 });
telemetry.sendTelemetryEvent('init', undefined, {
numOfFiles: uris.length,
indexSize: hasFullWorkspaceContents ? -1 : size,
hasWorkspaceContents: hasFullWorkspaceContents ? 1 : 0,
duration: performance.now() - t1,
});

}));
// stop on server-end
Expand Down

0 comments on commit 34d699e

Please sign in to comment.