Installation & Setup for NestJS

  1. Install Atatus Node.js package.
  2. Create atatus.js file in your project root with the following code:
  3. Start your NestJS application using one of these methods: Option 1: Using -r flag (recommended)
    Option 2: Using NODE_OPTIONS environment variable
    Or update your package.json scripts:
    For more advanced options on installing your monitoring code, view customizing agent.
  4. Build and Start your NestJS server. Just restart your server and access it from your web app or mobile app or curl. You will visualize your application’s metrics within minutes.
Important: For NestJS/TypeScript, use import * as atatus from 'atatus-nodejs' instead of the default import.