This is a read-only subtree split of https://github.com/open-telemetry/opentelemetry-php-contrib.
This is an OpenTelemetry auto-instrumentation package for Symfony framework applications.
Please read https://opentelemetry.io/docs/instrumentation/php/automatic/ for instructions on how to install and configure the extension and SDK.
- OpenTelemetry extension
- OpenTelemetry SDK and exporters (required to actually export traces)
The following features are supported:
- root span creation (
Symfony\Component\HttpKernel\HttpKernel::handle
hook) - context propagation
- HttpClient client span creation
- HTTPClient context propagation
- Message Bus span creation
- Message Transport span creation
$ composer require open-telemetry/opentelemetry-auto-symfony
From Symfony subdirectory:
$ composer install
$ ./vendor/bin/phpunit tests
The extension can be disabled via runtime configuration:
OTEL_PHP_DISABLED_INSTRUMENTATIONS=symfony