app insights challanges

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

No files matched your search

+4 -3
View File
@@ -105,14 +105,15 @@ function submitAllStats(productJson) {
.setAutoCollectPerformance(false)
.setAutoCollectRequests(false)
.start();
appInsights.defaultClient.config.endpointUrl = 'https://vortex.data.microsoft.com/collect/v1';
var 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(function () { return resolve(); });
client.trackEvent("monacoworkbench/bundleStats", undefined, measurements);
client.sendPendingData(function () { return resolve(); });
});
}
exports.submitAllStats = submitAllStats;
+5 -3
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());
});
}