justbetter/magento2-sentry 0.1.0

Magento 2 Logger for Sentry

Type

magento2-module

License

OSL-3.0, AFL-3.0

Requires
Requires (dev)

None

Suggests

None

Provides

None

Conflicts

None

Replaces

None

Magento 2 Sentry Logger

This Magento 2 module integrates the Sentry sdk into magento 2. Depending on the log level configured in the backend of magento 2, notifications and errors can be send to sentry.

Installation

  • composer require justbetter/magento2-sentry
  • bin/magento module:enable JustBetter_Sentry
  • bin/magento setup:upgrade && bin/magento setup:static-content:deploy

Configuration

  • Options for the module are defined in the backend under Stores > Configuration > JustBetter > Sentry configuration

Optional error page configuration

  • Optional you can configure custom error pages in pub/errors. You can use the sentry feedback form and insert here the sentry log ID. The Sentry Log Id is captured in de customer session and can be retrieved in processor.php. Soon I'll integrate this in the module.

Compability

The module is tested on magento version 2.2.3 with sentry sdk version 1.8.x

Ideas, bugs or suggestions?

Please create a issue or a pull request.

Todo

  • Integrate custom error pages in composer package
  • Integrate feedback sentry form in error pages

License

MIT


JustBetter logo