feat(infra-dev): add opentelemetry and grafana (#12808)

This commit is contained in:
Antoine Moreaux
2025-06-24 12:13:24 +02:00
committed by GitHub
parent c56ccf7ed9
commit 9aaa104ec0
4 changed files with 78 additions and 9 deletions

View File

@ -57,12 +57,12 @@ export class MetricsService {
const date = Date.now();
for (const metric of metrics) {
const metricValue = await this.metricsCacheService.computeCount({
key: metric.cacheKey,
date,
});
groupedMetrics[metric.name] = metricValue;
groupedMetrics[metric.name] = await this.metricsCacheService.computeCount(
{
key: metric.cacheKey,
date,
},
);
}
return groupedMetrics;