Install the Node.js microagent on Heroku applications

Heroku's behavior change since Datadog's Sqreen acquisition

Since Sqreen has joined Datadog, signing up through Heroku, or creating new Heroku applications, is not possible anymore. Click here to learn more.

Heroku is a Platform as a Service (PaaS) that hosts web applications. Sqreen supports Heroku for Node.js applications.

  1. Review Node.js microagent compatibility to confirm that the Sqreen Microagent for Node.js is compatible with your Node.js application.
  2. Sign up to create your Sqreen account.
  3. Add the Sqreen Heroku Addon to your application. This automatically defines the SQREEN_TOKEN environment variable.
  4. After deploying your Node.js app on Heroku, install the microagent package and save it into your project.
    npm install --save sqreen
  5. Require the Sqreen microagent first at the top of your main script.
  6. Commit your changes and push them to Heroku. This triggers Heroku to deploy your modifications.
    git commit -a -m 'Add Sqreen to my application'
    git push heroku master

Learn more about using Sqreen with Heroku: