Check out our guides and API reference documentation on how to use Rollbar to monitor, debug, and triage errors.

Guides & SDKs    API Reference

Magento 2

Rollbar error monitoring integration for Magento projects.

Quick Start


Before installing the Rollbar module, make sure that you can run bin/magento setup:upgrade in your Magento app without problems.

  1. Add rollbar/rollbar-magento2 as a dependency in composer.json of your project and run composer update.
  2. Add your Rollbar post server access token to app/etc/env.php under rollbar key, ie:
'rollbar' => [
        'access_token' => '[YOUR ACCESS TOKEN]'
  1. Add any additional Rollbar configuration in app/etc/env.php under the rollbar key.
  2. bin/magento module:enable Rollbar_Magento2.
  3. bin/magento setup:upgrade.

Usage and Reference

The module should automatically report all PHP errors and exceptions in your Magento2 app. If you wish to add any manual logging in your app's code, use the standard Rollbar PHP \Rollbar\Rollbar::log method. \Rollbar\Rollbar::init has been invoked automatically already with settings from app/etc/env.php.

Help / Support

If you run into any issues, please email us at [email protected]

For bug reports, please open an issue on GitHub.


For more information on rollbar-php, please see the docs here.

Updated about a year ago

Magento 2

Rollbar error monitoring integration for Magento projects.

Suggested Edits are limited on API Reference Pages

You can only suggest edits to Markdown body content, but not to the API spec.