Skip to content
Go to file

Latest commit

The `serverPort` property is currently only used to validate the
configuration to ensure that it's within an acceptable range of 1-65535.

However, in case the APM Server port was either 443 or 80, its value
would be an empty string when parsed. This in turn would result in
`serverPort` having the value `NaN`.

This would technically still work as the old range check would still be
valid. However, it could make debugging harder, so it's better to fix

Git stats


Failed to load latest commit information.
Latest commit message
Commit time
Nov 30, 2020

Elastic APM Node.js Agent

This is the official Node.js agent for Elastic APM.

If you have any feedback or questions, please post them on the Discuss forum.

npm Build Status Build status Standard - JavaScript Style Guide


npm install elastic-apm-node --save

Quick start

  1. To run Elastic APM for your own applications, make sure you have the prerequisites in place first. This agent is compatible with APM Server v6.5 and above. For support for previous releases of the APM Server, use version 1.x of the agent. For details see Getting Started with Elastic APM

  2. Now follow the documentation links below relevant to your framework or stack to get set up



Contributions are welcome, but we recommend that you take a moment and read our contribution guide first.

To see what data is being sent to the APM Server, use the environment variable ELASTIC_APM_PAYLOAD_LOG_FILE (or the config option payloadLogFile) to specify a log file, e.g:


Please see for instructions on how to run the test suite.



Made with ♥️ and ☕️ by Elastic and our community.

You can’t perform that action at this time.