1
0
mirror of https://github.com/Unleash/unleash.git synced 2025-09-24 17:51:14 +02:00

feat: histogram impact metric ingestion

This commit is contained in:
kwasniew 2025-09-22 17:05:28 +02:00
parent 4f1fdfe63b
commit a4a23ac3c3
No known key found for this signature in database
GPG Key ID: 43A7CBC24C119560
2 changed files with 4 additions and 0 deletions

View File

@ -31,10 +31,12 @@ export class BatchHistogram {
name: string;
help: string;
registry: Registry;
labelNames?: string[];
}) {
this.name = config.name;
this.help = config.help;
this.registry = config.registry;
this.labelNames = config.labelNames || [];
this.registry.registerMetric(this as any);
}

View File

@ -174,6 +174,7 @@ export class MetricsTranslator {
name: prefixedName,
help: metric.help,
registry: this.registry,
labelNames,
});
} else {
histogram = existingMetric as BatchHistogram;
@ -183,6 +184,7 @@ export class MetricsTranslator {
name: prefixedName,
help: metric.help,
registry: this.registry,
labelNames,
});
}