mirror of
https://github.com/dadosfera/maestro.git
synced 2026-11-22 09:29:07 +00:00
FIX: conditionally importing apm
This commit is contained in:
@@ -1,5 +0,0 @@
|
||||
export const startAPm = async () => {
|
||||
if (process.env.ENV !== 'local')
|
||||
return await import('elastic-apm-node/start');
|
||||
};
|
||||
startAPm();
|
||||
+1
-2
@@ -1,4 +1,4 @@
|
||||
import './apm';
|
||||
if (process.env.ENV !== 'local') require('elastic-apm-node/start');
|
||||
import { NestFactory } from '@nestjs/core';
|
||||
import { DocumentBuilder, SwaggerModule } from '@nestjs/swagger';
|
||||
import helmet from 'helmet';
|
||||
@@ -7,7 +7,6 @@ import { DadosferaLogger } from 'dadosfera-logs';
|
||||
import documentEmpty from '../swagger_empty.json';
|
||||
|
||||
import { AppModule } from './app.module';
|
||||
|
||||
async function bootstrap() {
|
||||
DadosferaLogger.setupLogger({
|
||||
serviceName: 'maestro',
|
||||
|
||||
Reference in New Issue
Block a user