diff --git a/src/config/metrics/interceptors/response.prom.interceptor.ts b/src/config/metrics/interceptors/response.prom.interceptor.ts index 6de03fc..5017d83 100644 --- a/src/config/metrics/interceptors/response.prom.interceptor.ts +++ b/src/config/metrics/interceptors/response.prom.interceptor.ts @@ -13,7 +13,7 @@ export class ResponseInterceptor implements NestInterceptor { .pipe(defaultIfEmpty(null)) .pipe( map((result) => { - if (excludePaths.includes(req.url)) { + if (!excludePaths.includes(req.url)) { return result; } }) diff --git a/src/main.ts b/src/main.ts index 41522f6..b83e582 100644 --- a/src/main.ts +++ b/src/main.ts @@ -25,7 +25,6 @@ async function bootstrap() { }, }) ); - app.useGlobalInterceptors(new ResponseInterceptor()); app.useGlobalInterceptors(new PrometheusInterceptor()); app.enableCors({ origin: "*",