@idearium/apm
Defaults for our Elastic APM integration.
Installation
$ yarn add -E @idearium/apm
Beta installation
If you need to install a beta version, you can:
$ yarn add -E @idearium/apm@beta
Usage
To use @idearium/apm
, simply require it at the top of your server.js file.
You will need to include the following environment variables in your manifests:
ELASTIC_APM_IGNORE_URLS: '/_status/ping,/version.json'
ELASTIC_APM_SERVER_URL: 'https://elasticserverurl:443'
ELASTIC_APM_SERVICE_NAME: 'project-repo-container-environment'
Advanced usage
In addition to the required environment variables above, you can customize the apm integration using any of the Elastic APM agent configuration options.