Raven Sentry client

Component ID

2599354

Component name

Raven Sentry client

Component type

module

Maintenance status

Development status

Component security advisory coverage

covered

Downloads

10104

Component created

Component changed

Component body

Raven module is a Drupal client for Sentry, an open source exception logging, aggregation and notification platform.

You can use the Sentry hosted service or install the Sentry app on your own infrastructure (e.g. using Docker).

This module logs errors to Sentry in a few ways:

  • Register error handler for uncaught exceptions,
  • Register error handler for PHP errors,
  • Register error handler for fatal errors,
  • Handle watchdog messages, and
  • Handle JavaScript exceptions via Raven.js.

You can choose which errors you want to catch by enabling desired error handlers and selecting error levels.

Raven module can capture errors which would otherwise not be caught by Drupal watchdog: fatal PHP errors such as memory limit exceeded, as well as fatal JavaScript errors.

Known issues: If you have code that generates thousands of PHP notices—for example processing a large set of data, with one notice for each item—you may find that storing and sending the errors to Sentry requires a large amount of memory and execution time, enough to exceed your configured memory_limit and max_execution_time settings. This could result in a stalled or failed request. The work-around for this case would be to disable sending PHP notices to Sentry.

This module is not affiliated with Sentry. It was originally created by nodge and is now developed by mfb.

Raven graphic by Hugh D’Andrade (Creative Commons Attribution License).