nestjs-otel
Version:
NestJS OpenTelemetry Library
14 lines (11 loc) • 339 B
text/typescript
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();