app insights challanges

This commit is contained in:
Johannes Rieken
2018-09-06 10:25:45 +02:00
parent e7888452c2
commit 9536dde3b4
2 changed files with 9 additions and 6 deletions

View File

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