tweak event name, add GDPR comment

This commit is contained in:
Johannes Rieken
2018-09-05 10:30:12 +02:00
parent 03187b6a9f
commit cf94186168
2 changed files with 12 additions and 2 deletions

View File

@@ -112,7 +112,12 @@ export function submitAllStats(productJson: any): Promise<void> {
.start();
appInsights.defaultClient.config.endpointUrl = 'https://vortex.data.microsoft.com/collect/v1';
appInsights.defaultClient.trackEvent(`bundleStats`, undefined, measurements);
/* __GDPR__
"monacoworkbench/bundleStats" : {
"outcome" : {"classification": "SystemMetaData", "purpose": "PerformanceAndHealth", "isMeasurement": true }
}
*/
appInsights.defaultClient.trackEvent(`monacoworkbench/bundleStats`, undefined, measurements);
appInsights.defaultClient.sendPendingData(() => resolve());
});