r3h6 / opentelemetry-auto-doctrine-dbal
OpenTelemetry auto-instrumentation for Doctrine DBAL.
0.1.0
2025-01-30 22:09 UTC
Requires
- php: >=8.1 <8.5
- ext-opentelemetry: *
- doctrine/dbal: ^3.0 || ^4.0
- open-telemetry/api: ^1.0
- open-telemetry/sem-conv: ^1.24
Requires (Dev)
- friendsofphp/php-cs-fixer: ^3.68
- nyholm/psr7: ^1.8
- open-telemetry/sdk: ^1.2
- phpstan/phpstan: ^2.1
- phpunit/phpunit: ^10.5
- symfony/http-client: *
README
Please read https://opentelemetry.io/docs/instrumentation/php/automatic/ for instructions on how to install and configure the extension and SDK.
Overview
Auto-instrumentation hooks are registered via composer, and spans will automatically be created for
selected Doctrine\DBAL\Connection
and Doctrine\DBAL\Result
methods.
Configuration
The extension can be disabled via runtime configuration:
OTEL_PHP_DISABLED_INSTRUMENTATIONS=doctrine-dbal