open-telemetry / opentelemetry-auto-slim
OpenTelemetry auto-instrumentation for Slim Framework.
1.0.7
2024-06-25 01:39 UTC
Requires
- php: ^8.0
- ext-opentelemetry: *
- ext-reflection: *
- open-telemetry/api: ^1.0
- open-telemetry/sem-conv: ^1.24
- slim/slim: ^4
Requires (Dev)
- friendsofphp/php-cs-fixer: ^3
- mockery/mockery: ^1.5
- nyholm/psr7: *
- open-telemetry/opentelemetry-propagation-server-timing: *
- open-telemetry/opentelemetry-propagation-traceresponse: *
- open-telemetry/sdk: ^1.0
- phan/phan: ^5.0
- php-http/mock-client: *
- phpstan/phpstan: ^1.1
- phpstan/phpstan-mockery: ^1.1.0
- phpstan/phpstan-phpunit: ^1.0
- phpunit/phpunit: ^9.5
- psalm/plugin-phpunit: ^0.18.4
- vimeo/psalm: ^5.0
This package is auto-updated.
Last update: 2024-10-29 07:16:43 UTC
README
This is a read-only subtree split of https://github.com/open-telemetry/opentelemetry-php-contrib.
OpenTelemetry Slim Framework auto-instrumentation
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:
App::handle()
- root spanInvocationStrategyInterface
- controller/actionRoutingMiddleware::performRouting
- update root span's name with either route name or pattern
Configuration
The extension can be disabled via runtime configuration:
OTEL_PHP_DISABLED_INSTRUMENTATIONS=slim