UNPKG

nestjs-otel

Version:
14 lines (11 loc) 339 B
import otelSDK from './tracing'; import { NestFactory } from '@nestjs/core'; import { AppModule } from './app.module'; import { Logger } from 'nestjs-pino'; async function bootstrap() { await otelSDK.start(); const app = await NestFactory.create(AppModule); app.useLogger(app.get(Logger)); await app.listen(5555); } bootstrap();