A simple proxy and self configurable elastic_apm agent for AWS Lambda
With npm:
npm i --save serverless-elastic-apm
With yarn:
yarn add serverless-elastic-apm
ES_APM_SERVICE_NAME
: (required)
The service name
ES_APM_SECRET_TOKEN
: (required)
The APM Server secret token
ES_APM_SERVER_URL
: (required)
The APM Server url
const apm = require('serverless-elastic-apm')
const handler = async (event, context) => {
return 42
}
module.exports = apm(handler)
For more details visit the ElasticAPM documentation
ISC © Carlos Castellanos