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 install elastic-apm-node --save
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.2 and above. For details see Getting Started with Elastic APM
Now follow the documentation links below relevant to your framework or stack to get set up
- Table of contents
- Get started with Express
- Get started with hapi
- Get started with Koa
- Get started with a custom Node.js stack
- Advanced Setup and Configuration
- API Reference
- Custom Transactions
- Custom Spans
- Performance Tuning
- Source Map Support
- Compatibility Overview
Contributions are welcome, but we recommend that you take a moment and read our contribution guide first.
To ease development,
set the environment variable
DEBUG_PAYLOAD=1 to have the agent dump the JSON payload sent to the APM Server to a temporary file on your local harddrive.
Please see TESTING.md for instructions on how to run the test suite.
Made with ♥️ and ☕️ by Elastic and our community.