$ npm i nestjs-apm
import { apm } from 'nestjs-apm';
...
if (apm.isStarted()) {
console.log('APM running');
}
...
import { ApmModule } from 'nestjs-apm';
...
@NgModule({
...
imports: [
...,
ApmModule.register(),
...
]
})
export class AppModule { }
ELASTIC_APM_SERVER_URL=
ELASTIC_APM_LOG_LEVEL=
ELASTIC_APM_SERVICE_NAME=