APM Installation instructions for Node.js
1. Install the agent
Follow the agent installation instructions for your environment.
2. Set up Profiling
Install the module with:
npm install raygun-apm --save
Profile requests by adding this require statement at the start of your main js file:
Set the RAYGUN_API_KEY environment variable. There are a number of ways to do this, but an example for Linux would be to run this command:
export RAYGUN_API_KEY=<YOUR RAYGUN API KEY>
3. Try it out
Start your Node.js app and send some requests. Traces will normally appear within Raygun within 5 minutes.
If you haven't seen any traces after 10 minutes, take a look at our troubleshooting documentation.
For requirements, configuration and examples of usage see the raygun-apm module documentation.