Raven: Sentry Integration
This module integrates your Drupal site with Sentry, a service for monitoring application errors and performance. It sends various log events, PHP and JavaScript errors, and performance traces to Sentry for detailed analysis and debugging. You can configure which events are captured and enable features like release health monitoring and cron job alerts.
Raven module provides integration with Sentry, an application monitoring and error tracking platform, allowing your Drupal site to send log events and performance traces to Sentry.
Sentry can capture all (or a user-defined subset of) Drupal log messages as well as errors that typically are not logged by Drupal: fatal PHP errors such as memory limit exceeded, fatal JavaScript errors, and exceptions thrown by Drush commands, and provides a full stacktrace and customizable metadata for each event.
You can use the Sentry hosted service or install Sentry (and/or Sentry Relay) on your own infrastructure (e.g. using Docker). Alternative lighter-weight backends such as Bugsink and GlitchTip are also available.
This module can send the following types of events to Sentry:
- PHP fatal errors;
- Drupal log (watchdog) messages;
- Drush command exceptions;
- JavaScript exceptions, via @sentry/browser;
- Content Security Policy (CSP) reports, if CSP or Security Kit modules are installed; and
- Monitoring sensor status changes, if Monitoring module is installed.
You can choose which errors you want to catch by enabling desired error handlers and selecting error levels. A Sentry breadcrumb is recorded for each Drupal log message. If you use Monolog module, the README explains how to setup the drupal.raven Monolog handler to send log events to Sentry.
Sentry structured logs are also supported; these lightweight logs lack stacktraces and are only sent once at the end of the request (or on demand).
Raven module also integrates with Sentry performance tracing, both server-side and in the browser. If enabled on the module settings page, a transaction will be created for each request/response handled by Drupal, each page load in the browser, and each Drush command. Spans (timed operations) can be captured for:
- Requests made by Drupal's HTTP client;
- Database queries;
- Rendered Twig templates;
- Log messages sent to Sentry;
- Client-side spans captured by the Sentry browser SDK, including Interaction to Next Paint (INP) spans, if enabled; and
- Any spans created by custom code.
If you install the optional Excimer PHP extension and configure the profiling sample rate, Sentry can render highly detailed, interactive flame graphs.
You also have the option to enable Sentry release health monitoring, which sends a session event to Sentry for each page load, allowing you to track adoption and crash rate of new releases. If you enable the user feedback dialog option, users will be prompted to submit a crash report when JavaScript exceptions are thrown.
If you configure cron monitoring, Sentry will alert you when cron runs are missed and graph the average duration of cron runs over time.
Raven release branch Sentry PHP dependency Sentry JavaScript 7.x 4.x 10.x (ES2020) 6.x 4.x 8.x (ES2018) 5.x 4.x 7.x (ES6) 4.x 3.x 7.x (ES6) 3.x 3.x 6.x 8.x-2.x 1.x 6.x 7.x-4.x 3.x 6.x 7.x-3.x 1.x 6.x 7.x-2.x 1.x 3.xCredits:
Raven module is not affiliated with Sentry; it is developed and maintained by mfb. You can support development by contributing or sponsoring.
Raven graphic by Hugh D’Andrade (Creative Commons Attribution License).
Depends on
Dependencies of the latest stable release
No dependencies recorded for this project.
Required by
Tracked projects that depend on this one
No tracked projects depend on this one yet.
Activity
Release Timeline
Releases
| Version | Type | Core | Notes | Release date | |
|---|---|---|---|---|---|
| 7.5.2 | Stable | 11 | Aug 27, 2026 | ||
| 7.5.1 | Stable | 11 | Aug 8, 2026 | ||
| 7.5.0 | Stable | 11 | Aug 7, 2026 | ||
| 3.2.33 | Stable | 8–10 | Aug 6, 2026 | ||
| 4.0.41 | Stable | 8–10 | Aug 6, 2026 | ||
| 5.0.25 | Stable | 10–11 | Aug 6, 2026 | ||
| 6.0.17 | Stable | 10–11 | Aug 6, 2026 | ||
| 7.4.2 | Stable | 11 | Aug 6, 2026 | ||
| 7.4.1 | Stable | 11 | Jul 3, 2026 | ||
| 7.4.0 | Stable | 11 | Jun 4, 2026 | ||
| 7.3.9 | Stable | 11 | May 6, 2026 | ||
| 7.3.8 | Stable | 11 | Apr 7, 2026 | ||
| 7.3.7 | Stable | 11 | Mar 15, 2026 | ||
| 7.3.6 | Stable | 11 | Feb 19, 2026 | ||
| 7.3.5 | Stable | 11 | Jan 23, 2026 | ||
| 7.3.4 | Stable | 11 | Dec 28, 2025 | ||
| 7.3.3 | Stable | 11 | Nov 27, 2025 | ||
| 7.3.2 | Stable | 11 | Nov 18, 2025 | ||
| 7.3.1 | Stable | 11 | Oct 16, 2025 | ||
| 7.3.0 | Stable | 11 | Sep 16, 2025 | ||
| 7.2.1 | Stable | 11 | Sep 4, 2025 | ||
| 7.2.0 | Stable | 11 | Sep 4, 2025 | ||
| 7.1.3 | Stable | 11 | Aug 20, 2025 | ||
| 7.1.2 | Stable | 11 | Aug 19, 2025 | ||
| 7.1.1 | Stable | 11 | Aug 19, 2025 | ||
| 7.1.0 | Stable | 11 | Aug 17, 2025 | ||
| 7.0.0 | Stable | 11 | Aug 17, 2025 | ||
| 7.x-dev | Dev | 11 | Aug 17, 2025 | ||
| 6.0.16 | Stable | 10–11 | Aug 15, 2025 | ||
| 5.0.24 | Stable | 10–11 | Aug 15, 2025 | ||
| 4.0.40 | Stable | 8–10 | Aug 15, 2025 | ||
| 3.2.32 | Stable | 8–10 | Aug 15, 2025 | ||
| 6.0.15 | Stable | 10–11 | Feb 6, 2025 | ||
| 6.0.14 | Stable | 10–11 | Jan 3, 2025 | ||
| 5.0.23 | Stable | 10–11 | Jan 3, 2025 | ||
| 4.0.39 | Stable | 8–10 | Jan 3, 2025 | ||
| 3.2.31 | Stable | 8–10 | Jan 3, 2025 | ||
| 6.0.13 | Stable | 10–11 | Dec 16, 2024 | ||
| 5.0.22 | Stable | 10–11 | Dec 16, 2024 | ||
| 4.0.38 | Stable | 8–10 | Dec 16, 2024 | ||
| 5.0.21 | Stable | 10–11 | Dec 5, 2024 | ||
| 4.0.37 | Stable | 8–10 | Dec 5, 2024 | ||
| 6.0.12 | Stable | 10–11 | Dec 4, 2024 | ||
| 5.0.20 | Stable | 10–11 | Nov 21, 2024 | ||
| 4.0.36 | Stable | 8–10 | Nov 21, 2024 | ||
| 7.x-3.23 | Stable | Nov 8, 2024 | |||
| 6.0.11 | Stable | 10–11 | Nov 2, 2024 | ||
| 4.0.35 | Stable | 8–10 | Oct 7, 2024 | ||
| 5.0.19 | Stable | 10–11 | Oct 7, 2024 | ||
| 6.0.10 | Stable | 10–11 | Oct 4, 2024 |