bundle stats, rename event, tweak gdpr comment
This commit is contained in:
parent
97640c99ec
commit
94c4825153
2 changed files with 12 additions and 10 deletions
|
@ -96,8 +96,8 @@ function submitAllStats(productJson) {
|
|||
var measurements = Object.create(null);
|
||||
for (var _i = 0, sorted_2 = sorted; _i < sorted_2.length; _i++) {
|
||||
var entry = sorted_2[_i];
|
||||
measurements[entry.name + ".size"] = entry.totalSize;
|
||||
measurements[entry.name + ".count"] = entry.totalCount;
|
||||
measurements["size:" + entry.name] = entry.totalSize;
|
||||
measurements["count:" + entry.name] = entry.totalCount;
|
||||
}
|
||||
appInsights.setup(productJson.aiConfig.asimovKey)
|
||||
.setAutoCollectConsole(false)
|
||||
|
@ -108,11 +108,12 @@ function submitAllStats(productJson) {
|
|||
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 }
|
||||
"monacoworkbench/packagemetrics" : {
|
||||
"size:???" : {"classification": "SystemMetaData", "purpose": "PerformanceAndHealth", "isMeasurement": true }
|
||||
"count:???" : {"classification": "SystemMetaData", "purpose": "PerformanceAndHealth", "isMeasurement": true }
|
||||
}
|
||||
*/
|
||||
client.trackEvent("monacoworkbench/bundleStats", undefined, measurements);
|
||||
client.trackEvent("monacoworkbench/packagemetrics", undefined, measurements);
|
||||
client.sendPendingData(function () { return resolve(); });
|
||||
});
|
||||
}
|
||||
|
|
|
@ -100,8 +100,8 @@ export function submitAllStats(productJson: any): Promise<void> {
|
|||
|
||||
const measurements = Object.create(null);
|
||||
for (const entry of sorted) {
|
||||
measurements[`${entry.name}.size`] = entry.totalSize;
|
||||
measurements[`${entry.name}.count`] = entry.totalCount;
|
||||
measurements[`size:${entry.name}`] = entry.totalSize;
|
||||
measurements[`count:${entry.name}`] = entry.totalCount;
|
||||
}
|
||||
|
||||
appInsights.setup(productJson.aiConfig.asimovKey)
|
||||
|
@ -115,11 +115,12 @@ export function submitAllStats(productJson: any): Promise<void> {
|
|||
client.config.endpointUrl = 'https://vortex.data.microsoft.com/collect/v1';
|
||||
|
||||
/* __GDPR__
|
||||
"monacoworkbench/bundleStats" : {
|
||||
"outcome" : {"classification": "SystemMetaData", "purpose": "PerformanceAndHealth", "isMeasurement": true }
|
||||
"monacoworkbench/packagemetrics" : {
|
||||
"size:???" : {"classification": "SystemMetaData", "purpose": "PerformanceAndHealth", "isMeasurement": true }
|
||||
"count:???" : {"classification": "SystemMetaData", "purpose": "PerformanceAndHealth", "isMeasurement": true }
|
||||
}
|
||||
*/
|
||||
client.trackEvent(`monacoworkbench/bundleStats`, undefined, measurements);
|
||||
client.trackEvent(`monacoworkbench/packagemetrics`, undefined, measurements);
|
||||
client.sendPendingData(() => resolve());
|
||||
});
|
||||
|
||||
|
|
Loading…
Reference in a new issue