test(core): Add tests for Prometheus metrics service (no-changelog) (#10050)

This commit is contained in:
Iván Ovejero
2024-07-15 12:16:27 +02:00
committed by GitHub
parent cd24c71a9e
commit b42f652f1b
5 changed files with 134 additions and 9 deletions

View File

@@ -168,8 +168,8 @@ export class Server extends AbstractServer {
async configure(): Promise<void> {
if (config.getEnv('endpoints.metrics.enable')) {
const { MetricsService } = await import('@/services/metrics.service');
await Container.get(MetricsService).configureMetrics(this.app);
const { PrometheusMetricsService } = await import('@/metrics/prometheus-metrics.service');
await Container.get(PrometheusMetricsService).configureMetrics(this.app);
}
const { frontendService } = this;