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 every request, you need to call atatus.stop

copy
icon/buttons/copy
import atatus from 'atatus-nodejs’;
atatus.start({ });

// Your code

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