open-telemetry / opentelemetry-auto-psr14
针对 PSR-14 (事件分发器) 的 OpenTelemetry 自动配置。
0.0.3
2024-06-25 01:39 UTC
Requires
- php: ^8.0
- composer-runtime-api: ^2.0
- ext-opentelemetry: *
- open-telemetry/api: ^1.0
- open-telemetry/sem-conv: ^1.24
- psr/event-dispatcher: ^1
Requires (Dev)
- friendsofphp/php-cs-fixer: ^3
- nyholm/psr7: *
- open-telemetry/sdk: ^1.0
- phan/phan: ^5.0
- php-http/mock-client: *
- phpstan/phpstan: ^1.1
- phpstan/phpstan-phpunit: ^1.0
- phpunit/phpunit: ^9.5
- psalm/plugin-phpunit: ^0.18.4
- vimeo/psalm: ^5.0
README
这是来自 https://github.com/open-telemetry/opentelemetry-php-contrib 的只读子树分离。
OpenTelemetry PSR-14 自动配置
请阅读 https://opentelemetry.io/docs/instrumentation/php/automatic/ 了解如何安装和配置扩展和 SDK 的说明。
概述
自动配置钩子通过 composer 注册,并为每个分发的 PSR-14 事件自动创建跨度。
配置
可以通过 运行时配置 禁用该扩展。
OTEL_PHP_DISABLED_INSTRUMENTATIONS=psr14