If you are not seeing data even after setup, check the following:
  • Ensure you are starting your application with the -r ./atatus.js flag. For example: node -r ./atatus.js ./app/server.js
  • You can enable debug flag to know whether anything is getting failed.

Issue with ES6, Babel, and TypeScript

If you are using ES6, Babel, or TypeScript, ensure you have created the atatus.js initialization file correctly and are using the proper import syntax:
  • For JavaScript (ES Modules): import atatus from 'atatus-nodejs'
  • For TypeScript: import * as atatus from 'atatus-nodejs'
Create the atatus.js file in your project root:
Start your application with the -r flag:
  • Restart your Node.js server.