Drupal

Module for Drupal 10.2+ and 11

The official DockRay module connects Drupal to the monitoring platform and automatically reports errors and exceptions that occur while your application is running. Events are sent directly to the DockRay dashboard along with the information needed to investigate them.

Error and Performance Information

Reported events can include:

  • the error type, message, and severity level,
  • where the error occurred and the stack trace,
  • environment and application version information,
  • context related to the request being processed.

The module can also monitor HTTP request processing times and optionally collect JavaScript errors occurring in the browser.

Simple Configuration

You can configure the integration under Configuration → Development → DockRay by entering your project token and private key. The credentials can also be stored in the settings.php file.

Developer Features

DockRay automatically integrates with Drupal’s logging system. You can also manually report caught exceptions and send messages using Drupal’s standard logger.

Events are sent in the background after the response has been prepared, so temporary monitoring service outages do not delay the website response for the user.

Installation

  1. In your Drupal project directory, install the module using Composer:
    bash
    composer require drupal/dockray
  2. Enable the module using Drush:
    drush en dock_ray

Configuration

  1. Go to Configuration → Development → DockRay.
  2. Enter the project token and private key available in the DockRay dashboard.
  3. Save the configuration.
  4. Click Send a test event to verify the connection to DockRay.

The private key can also be stored in the settings.php file, so it does not need to be included in the configuration exported to your repository.

Articles in this category

DockRay newsletter

Application security in your inbox

Important vulnerabilities, actionable guidance and practical advice for your applications. Choose your technologies and follow what matters to your project.

  • A daily digest of new vulnerabilities, critical ones included.
  • Notifications about important updates.
  • Practical advice on application security and monitoring.

Leave empty to receive updates for every technology.

Free to subscribe. Unsubscribe with one click in any email.