@@ -304,6 +304,9 @@ export class BaseTelemetryReporter {
304
304
const cleanProperties = this . cloneAndChange ( properties , ( _key : string , prop : string ) => this . anonymizeFilePaths ( prop , this . firstParty ) ) ;
305
305
properties = this . removePropertiesWithPossibleUserInfo ( cleanProperties ) ;
306
306
}
307
+ // The pipeline doesn't like undefined measurements or properties bag so at least send an empty object
308
+ properties = properties ?? { } ;
309
+ measurements = measurements ?? { } ;
307
310
eventName = `${ this . extensionId } /${ eventName } ` ;
308
311
this . telemetryAppender . logEvent ( eventName , { properties, measurements } ) ;
309
312
}
@@ -369,6 +372,9 @@ export class BaseTelemetryReporter {
369
372
} ) ;
370
373
properties = this . removePropertiesWithPossibleUserInfo ( cleanProperties ) ;
371
374
}
375
+ // The pipeline doesn't like undefined measurements or properties bag so at least send an empty object
376
+ properties = properties ?? { } ;
377
+ measurements = measurements ?? { } ;
372
378
eventName = `${ this . extensionId } /${ eventName } ` ;
373
379
this . telemetryAppender . logEvent ( eventName , { properties, measurements } ) ;
374
380
}
@@ -423,6 +429,9 @@ export class BaseTelemetryReporter {
423
429
}
424
430
properties = this . removePropertiesWithPossibleUserInfo ( cleanProperties ) ;
425
431
}
432
+ // The pipeline doesn't like undefined measurements or properties bag so at least send an empty object
433
+ properties = properties ?? { } ;
434
+ measurements = measurements ?? { } ;
426
435
this . telemetryAppender . logException ( error , { properties, measurements } ) ;
427
436
}
428
437
}
0 commit comments