File tree Expand file tree Collapse file tree 3 files changed +1
-16
lines changed
Expand file tree Collapse file tree 3 files changed +1
-16
lines changed Original file line number Diff line number Diff line change @@ -81,8 +81,7 @@ export async function activate(context: ExtensionContext) {
8181 const startTelemetry = Date . now ( ) ;
8282 outputChannel . trace ( `[telemetry]: Starting...` ) ;
8383 const sessionId = await getOrCreateExtensionSessionId ( context ) ;
84- const machineId = await getOrCreateMachineId ( context ) ;
85- const telemetry = createTelemetry ( outputChannel , sessionId , machineId ) ;
84+ const telemetry = createTelemetry ( outputChannel , sessionId ) ;
8685 const endTelemetry = Date . now ( ) ;
8786 outputChannel . trace (
8887 `[telemetry]: Completed in ${ ms ( endTelemetry - startTelemetry , {
Original file line number Diff line number Diff line change @@ -266,15 +266,3 @@ export async function getOrCreateExtensionSessionId(
266266 }
267267 return sessionId ;
268268}
269-
270- // Checks for machine id in workspaceState, creates if missing (to avoid calling machineId multiple times)
271- export async function getOrCreateMachineId (
272- context : ExtensionContext ,
273- ) : Promise < string > {
274- let machineIdValue = context . workspaceState . get < string > ( "machine_id" ) ;
275- if ( ! machineIdValue ) {
276- machineIdValue = uuidv4 ( ) ;
277- await context . workspaceState . update ( "machine_id" , machineIdValue ) ;
278- }
279- return machineIdValue ;
280- }
Original file line number Diff line number Diff line change @@ -167,7 +167,6 @@ async function postEvent(
167167export function createTelemetry (
168168 outputChannel : LogOutputChannel ,
169169 sessionId : string ,
170- machineId : string ,
171170) : Telemetry {
172171 return {
173172 track ( event ) {
@@ -193,7 +192,6 @@ export function createTelemetry(
193192 schema_version : SCHEMA_VERSION ,
194193 ide_version : vscodeVersion ,
195194 extension_version : extensionVersion ,
196- machine_id : machineId ,
197195 operating_system : os . platform ( ) ,
198196 // if anything inside payload include it
199197 ...event . payload ,
You can’t perform that action at this time.
0 commit comments