This documentation is deprecated. Please refer our new documentation here

FAQAPMHow do I measure AWS Lambda functions?

Atatus APM automatically instruments AWS Lambda functions, but it sends metrics to our server in every 60 seconds. AWS Lambda NodeJS service might be executed faster than our send cycle. So at end of the every request, you need to call atatus.stop

import atatus from 'atatus-nodejs’;
    licenseKey: global.process.env.ATATUS_LICENSE_KEY,
    appName: global.process.env.ATATUS_APP_NAME

// Your code

// Before sending the response, send the data to Atatus.
atatus.stop({ reportBeforeStop: true });