Integrates the OpenTelemetry SDK.

For a full description of the module, visit the project page.

Submit bug reports and feature suggestions, or track changes in the issue queue.

Requirements

This module requires the OpenTelemetry SDK library:

One of the exporter libraries is required in order to ship instrumentation results to an OpenTelemetry endpoint.

Installation

Install as you would normally install a contributed Drupal module. For further information, see Installing Drupal Modules.

Add one or more of the recommended libraries using composer.

Configuration

  1. Enable the module at Administration > Extend.
  2. Supply OpenTelemetry SDK configuration via settings.php.

Example:

$settings['otsdk'] = [
  Variables::OTEL_PHP_AUTOLOAD_ENABLED => TRUE,
  Variables::OTEL_METRICS_EXPORTER => 'console',
  Variables::OTEL_TRACES_EXPORTER => 'console',
  Variables::OTEL_LOGS_EXPORTER => 'console',
];

See the OpenTelemetry docs for a full list of supported settings.

Maintainers

Project information

Releases