Open-APM is an lightweight APM for NodeJS. Allows you to observe NodeJS application to perform workload tests for improve the app.
import agent from '../index';
agent.start();
agent.wrap(functionExample)();
console.log('done!')
function functionExample() {
// ...
}
or Async
import agent from '../index';
agent.start();
agent.wrap(functionExample, 'functionExample', true)().then(() => console.log('done!'));
async function functionExample() {
// ...
}
Check the examples folder for more information.