nathandentzau/drupal-honeybadger

Zero-instrumentation, 360 degree coverage of errors, outages and service degradation.

Installs: 4 595

Dependents: 0

Suggesters: 0

Security: 0

Stars: 1

Watchers: 1

Forks: 2

Type:drupal-module

0.2.0 2023-02-17 01:51 UTC

This package is auto-updated.

Last update: 2024-11-17 05:52:06 UTC


README

This is a Honeybadger integration module for Drupal.

Requirements

  • PHP ^7.3 || ^8.0
  • Drupal ^8.7 || ^9.0 || ^10

Installation

This module must be installed with Composer:

$ composer require nathandentzau/drupal-honeybadger

Configuration

At this time, the module is only configurable via the settings.php file. In your settings file add the following:

$config['honeybadger.settings'] = [
  'api_key' => 'YOUR API KEY',
  'environment' => [
    'filter' => [],
    'include' => [],
  ],
  'request' => [
    'filter' => [],
  ],
  'version' => NULL,
  'hostname' => $_SERVER['HOST'],
  'project_root' => DRUPAL_ROOT,
  'environment_name' => 'THE CURRENT ENVIRONMENT',
  'handlers' => [
    'exception' => true,
    'error' => true,
  ],
  'client' => [
    'timeout' => 0,
    'proxy' => [],
  ],
  'excluded_exceptions' => [],
  'report_data' => true,
];

See the Honeybadger integration documentation for more information on the settings above.

Testing

This project contains unit tests and code linters.

  • PHPUnit: composer phpunit
  • PHPCS: composer phpcs

Maintainers