/
githubmirror
/
novu
Обзор
Документация
Войти
/
githubmirror
/
novu
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
next
apps/webhook/src/bootstrap.ts
28 строк
758 B
Himanshu Garg
feat(application-generic): introduction of OTEL Integration as a standardised monitoring (#10209)
12 мар 2026, 13:27
Не верифицирован
12 мар 2026, 13:27
27692ce
Код
Авторство
О чём код?
import './instrument'; import { INestApplication } from '@nestjs/common'; import { NestFactory } from '@nestjs/core'; import { getErrorInterceptor, Logger } from '@novu/application-generic'; import { AppModule } from './app.module'; export async function bootstrap(): Promise<INestApplication> { const app = await NestFactory.create(AppModule, { bufferLogs: true }); app.useLogger(app.get(Logger)); app.flushLogs(); app.useGlobalInterceptors(getErrorInterceptor()); app.enableCors({ origin: '*', preflightContinue: false, allowedHeaders: ['Content-Type', 'Authorization'], methods: ['GET', 'HEAD', 'POST', 'PUT', 'DELETE', 'OPTIONS'], }); app.enableShutdownHooks(); await app.listen(process.env.PORT); return app; }