Setting up Rollbar on Strapi

Alternative to Sentry

Rollbar Logo

What's Rollbar ?

Rollbar is an error tracking software, and works as same as Sentry, with a free plan limit to 5k event monthly (sufficient for development or small project).

Rollbar allow you to have unlimited project and users with a free plan, and can be connected to your Git repository to follow all deployments, versions and can also be connected to Slack in order to receive information in real time.

How to implement it quickly on Strapi ?

Install the node package :

yarn add rollbar

Use it as a Middleware, and catch all error :

/middlewares/rollbar/index.js

Load it in your configuration file :

/config/middleware.js

Enable it (at the end of the file) :

/config/middleware.js

That's it !

--

--