Node.js installation
Step 1 - Install the agent
Follow the agent installation instructions for your environment.
Step 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:
require('raygun-apm/http');
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=paste_your_api_key_here
Step 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.