Skip to content
This repository has been archived by the owner on Jan 15, 2022. It is now read-only.

Latest commit

 

History

History
47 lines (28 loc) · 958 Bytes

README.md

File metadata and controls

47 lines (28 loc) · 958 Bytes

npm version

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: (required) 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