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

karloscodes/serverless-elastic-apm

Repository files navigation

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

About

A simple proxy and self configurable elastic_apm agent for AWS Lambda

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published