import { Module } from '@nestjs/common'; import { AppController } from './app.controller'; import { AppService } from './app.service'; import { ConfigModule } from '@nestjs/config'; import config from './config/config'; import { MailModule } from './mail/mail.module'; import { RedisModule } from './redis/redis.module'; import { OpenTelemetryModule } from 'nestjs-otel'; @Module({ imports: [ OpenTelemetryModule.forRoot({ metrics: { apiMetrics: { enable: true, ignoreRoutes: [ '/favicon.ico', '/OidcServiceWorker.js', '/swagger', '/swagger-json', '/swagger-yaml', '/swagger/(.*)', '/metrics', '/interaction/(.*}', ], ignoreUndefinedRoutes: true, }, }, }), ConfigModule.forRoot({ cache: true, isGlobal: true, load: [config], }), MailModule, RedisModule, ], controllers: [AppController], providers: [AppService], }) export class AppModule {}