Drupal is a registered trademark of Dries Buytaert
Protected Pages 3.0.0 Major update available for module protected_pages (3.0.0). Commerce Core 3.3.8 Minor update available for module commerce (3.3.8). Search API HTML Element Filter 1.0.7 Minor update available for module search_api_html_element_filter (1.0.7). Layout Builder Reorder 2.0.1 Minor update available for module layout_builder_reorder (2.0.1). Ban 1.1.0 Minor update available for module ban (1.1.0). Field Formatter Range 2.0.0 Major update available for module field_formatter_range (2.0.0). Field Formatter Range 8.x-1.8 Minor update available for module field_formatter_range (8.x-1.8). Varbase Media Header 9.2.1 Minor update available for module varbase_media_header (9.2.1). Search API Solr 4.3.11 Module search_api_solr updated after 14 months of inactivity (4.3.11). Provus Mega Menu Module provus_mega_menu crossed 1,000 active installs.

Raven: Sentry Integration

9,531 sites Security covered
View on drupal.org

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.x

Credits:

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).

Activity

Total releases
28
First release
Dec 2024
Latest release
2 weeks ago
Releases (12 mo)
24 ▲ from 4
Maintenance
Active

Release Timeline

Releases

Version Type Release date
7.4.1 Stable Jul 3, 2026
7.4.0 Stable Jun 4, 2026
7.3.9 Stable May 6, 2026
7.3.8 Stable Apr 7, 2026
7.3.7 Stable Mar 15, 2026
7.3.6 Stable Feb 19, 2026
7.3.5 Stable Jan 23, 2026
7.3.4 Stable Dec 28, 2025
7.3.3 Stable Nov 27, 2025
7.3.2 Stable Nov 18, 2025
7.3.1 Stable Oct 16, 2025
7.3.0 Stable Sep 17, 2025
7.2.1 Stable Sep 4, 2025
7.2.0 Stable Sep 4, 2025
7.1.3 Stable Aug 20, 2025
7.1.2 Stable Aug 20, 2025
7.1.1 Stable Aug 19, 2025
7.1.0 Stable Aug 17, 2025
7.0.0 Stable Aug 17, 2025
7.x-dev Dev Aug 17, 2025
6.0.16 Stable Aug 16, 2025
5.0.24 Stable Aug 16, 2025
4.0.40 Stable Aug 16, 2025
3.2.32 Stable Aug 16, 2025
6.0.15 Stable Feb 6, 2025
5.0.21 Stable Dec 5, 2024
4.0.37 Stable Dec 5, 2024
6.0.12 Stable Dec 4, 2024