Skip to content

Commit

Permalink
fix: import otel before any other modules
Browse files Browse the repository at this point in the history
Signed-off-by: iverly <github@iverly.net>
  • Loading branch information
iverly committed Nov 28, 2023
1 parent 6da025c commit ab1c000
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions apps/api/src/main.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
// Otel must be imported before any other modules
import {
otelEnabled,
otelSDK,
} from '@nx-next-nest-prisma-ory-template/opentelemetry';

import { ValidationPipe } from '@nestjs/common';
import { NestFactory } from '@nestjs/core';
import {
Expand All @@ -11,10 +17,6 @@ import {
} from '@nx-next-nest-prisma-ory-template/error';
import { DocumentBuilder, SwaggerModule } from '@nestjs/swagger';
import { ResponseFormatterInterceptor } from '@nx-next-nest-prisma-ory-template/utils';
import {
otelEnabled,
otelSDK,
} from '@nx-next-nest-prisma-ory-template/opentelemetry';
import { Logger } from 'nestjs-pino';

async function bootstrap() {
Expand Down

0 comments on commit ab1c000

Please sign in to comment.