mladenrtl / opentelemetry-auto-drupal
OpenTelemetry auto-instrumentation for Drupal
0.1.3
2024-06-10 12:54 UTC
Requires
- ext-opentelemetry: *
- nyholm/psr7: ^1.8@dev
- open-telemetry/api: ^1.0
- open-telemetry/sdk: ^1
- open-telemetry/sem-conv: ^1.23
- symfony/http-client: 6.4.x-dev
This package is not auto-updated.
Last update: 2025-03-12 02:07:58 UTC
README
This is an OpenTelemetry auto-instrumentation package for Drupal framework applications.
Please read https://opentelemetry.io/docs/instrumentation/php/automatic/ for instructions on how to install and configure the extension and SDK.
Requirements
- OpenTelemetry extension
- OpenTelemetry SDK and exporters (required to actually export traces)
Overview
The following features are supported:
- root span creation (Drupal core hooks)
- context propagation
- HttpClient client span creation
- HttpClient context propagation
- Message Bus span creation
- Message Transport span creation
Installation via composer
$ composer require mladenrtl/opentelemetry-auto-drupal
Installing dependencies and executing tests
From Drupal subdirectory:
$ composer install $ ./vendor/bin/phpunit tests
Configuration
The extension can be disabled via runtime configuration:
OTEL_PHP_DISABLED_INSTRUMENTATIONS=drupal