wellrested / opentelemetry-auto
Auto instrumentation for Open Telemetry
v1.0.1
2024-08-21 17:57 UTC
Requires
- php: >=8.1
- ext-opentelemetry: *
- open-telemetry/api: ^1.0
- wellrested/wellrested: >=6.1
Requires (Dev)
- friendsofphp/php-cs-fixer: ^3
- nyholm/psr7: ^1.8
- open-telemetry/sdk: ^1.0
- phpspec/prophecy-phpunit: ^2
- phpunit/phpunit: ^9
- symfony/http-client: ^6.4
- vimeo/psalm: ^4
Suggests
- open-telemetry/opentelemetry-auto-psr15: Instrumentation for standard handlers and middleware
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:
Server::handle()
: Created the root spanRouter::dispatch()
: Updates the root span name with the matched route
Configuration
The extension can be disabled via runtime configuration:
OTEL_PHP_DISABLED_INSTRUMENTATIONS=wellrested