nestjs-apm
TypeScript icon, indicating that this package has built-in type declarations

1.0.9 • Public • Published

nestjs-apm-v6

Project forked from https://github.com/xiz0r/nestjs-apm.git with a fix for nestjs V6

Installation

$ npm i nestjs-apm-v6

NestJs config

main.ts (first line)

import { apm } from 'nestjs-apm-v6';
...
if (apm.isStarted()) {
    console.log('APM running');
}

app.module.ts

...
import { ApmModule } from 'nestjs-apm-v6';
...
@NgModule({
  ...
  imports: [
    ...,
    ApmModule.register(),
    ...
  ]
})
export class AppModule { }

Env variables

ELASTIC_APM_SERVER_URL=
ELASTIC_APM_LOG_LEVEL=
ELASTIC_APM_SERVICE_NAME=

Readme

Keywords

Package Sidebar

Install

npm i nestjs-apm

Weekly Downloads

140

Version

1.0.9

License

MIT

Unpacked Size

93.4 kB

Total Files

15

Last publish

Collaborators

  • jgcolo