0.0.1 • Published 5 years ago
serverless-elastic-apm v0.0.1
serverless-elastic-apm
A simple proxy and self configurable elastic_apm agent for AWS Lambda
Installation
With npm:
npm i --save serverless-elastic-apm
With yarn:
yarn add serverless-elastic-apm
Configuration via environment variables
ES_APM_SERVICE_NAME
: (required)
The service name
ES_APM_SECRET_TOKEN
: (optional)
The APM Server secret token
ES_APM_SERVER_URL
: (required)
The APM Server url
Usage
const apm = require('serverless-elastic-apm')
const handler = async (event, context) => {
return 42
}
module.exports = apm(handler)
Advanced usage
For more details visit the ElasticAPM documentation
License
ISC © Carlos Castellanos
0.0.1
5 years ago