Raven Sentry client for Drupal
Raven module integrates the Sentry-php and Raven.js clients for Sentry into Drupal.
Sentry is a realtime event logging and aggregation platform. It specializes in monitoring errors and extracting all the information needed to do a proper post-mortem without any of the hassle of the standard user feedback loop.
Features
This module logs errors 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
- Handle JavaScript exceptions via Raven.js.
You can choose which errors you want to catch by enabling desired error handlers and selecting error levels.
Installation for Drupal 7
Download and install the Libraries API 2 module, X Autoload 5 module, and the Raven module as normal. Then download the Sentry-php client library,
Unpack and rename the Sentry library directory to sentry-php
and
place it inside the sites/all/libraries
directory.
Make sure the path to the library files
becomes like this: sites/all/libraries/sentry-php/lib/Raven/Client.php
.
Optionally download Raven.js,
unpack and place inside the sites/all/libraries
directory, renaming the
directory to raven-js
.
Dependencies
- The Sentry-php client library
installed in
sites/all/libraries
- Libraries API 2
- X Autoload 5
- Optional: Raven.js
installed in
sites/all/libraries
Information for developers
You can attach an extra information to error reports (logged in user details,
modules versions, etc). See raven.api.php
for examples.
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.
Sponsors
This project was originally sponsored by Seenta and is now sponsored by EFF.