add compositeOpen telemetry event

fixes #9856
This commit is contained in:
Joao Moreno 2016-07-28 10:36:01 +02:00
parent 8d28c302ab
commit 4e09922a9c

View file

@ -100,6 +100,12 @@ export abstract class Composite extends WorkbenchComponent implements IComposite
if (visible) {
this._telemetryData = {};
this._telemetryData.startTime = new Date();
// Only submit telemetry data when not running from an integration test
if (this._telemetryService && this._telemetryService.publicLog) {
let eventName: string = 'compositeOpen';
this._telemetryService.publicLog(eventName, { composite: this.getId() });
}
}
// Send telemetry data when composite hides