0.2.0 • Published 7 years ago

newrelic-lambda-apm-wrapper v0.2.0

Weekly downloads
-
License
MIT
Repository
-
Last release
7 years ago

Newrelic Lambda APM Wrapper

Currently, only wraps a background transaction.

Example

handler.js in lambda

const nr = require('newrelic');
const createBackgroundTransaction = require('newrelic-lambda-apm-wrapper').createBackgroundTransaction.bind(null, nr);

exports.someFunction = createBackgroundTransaction('SomeFunction', (event, context) => {
    // figure out some stuff
    return someWork(event)
        .then(result => {
            statusCode: 200,
            body: JSON.stringify(result)
        });
});
0.2.0

7 years ago

0.1.1

7 years ago

0.1.0

7 years ago