1
0
mirror of https://github.com/Unleash/unleash.git synced 2025-08-13 13:48:59 +02:00

feat: default origin for impact metrics

This commit is contained in:
kwasniew 2025-07-16 14:28:38 +02:00
parent 21748c4ba5
commit 36fb0e1976
No known key found for this signature in database
GPG Key ID: 43A7CBC24C119560

View File

@ -46,7 +46,7 @@ export class MetricsTranslator {
): Record<string, string | number> {
return {
...(sample.labels || {}),
origin: (sample.labels && sample.labels.origin) || 'sdk', // Default to 'sdk' if not provided
origin: (sample.labels && sample.labels.origin) || 'sdk',
};
}