Update analytics.ts

This commit is contained in:
Kamil Kisiela 2022-12-19 10:33:02 +01:00 committed by GitHub
parent ed5f0790f1
commit 52a8f616ff
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -38,12 +38,12 @@ export function createAnalytics(
switch (event.type) {
case 'artifact':
return engines.usage.writeDataPoint({
blobs: [event.type, event.version, event.value, targetId],
indexes: [targetId],
blobs: [event.version, event.value, targetId],
indexes: [targetId.substr(0, 32)],
});
case 'error':
return engines.error.writeDataPoint({
blobs: [event.type, ...event.value],
blobs: event.value,
});
}
},