open-telemetry / opentelemetry-auto-io
OpenTelemetry IO 自动检测
0.0.12
2024-06-25 01:39 UTC
Requires
- php: ^8.2
- ext-opentelemetry: *
- open-telemetry/api: ^1.0
- open-telemetry/sem-conv: ^1.24
Requires (Dev)
- friendsofphp/php-cs-fixer: ^3
- 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 IO 自动检测
请阅读 https://opentelemetry.io/docs/instrumentation/php/automatic/ 了解如何安装和配置扩展和 SDK。
概述
通过 composer 注册自动检测钩子,以下函数将自动创建跨度
fopen
fwrite
fread
file_get_contents
file_put_contents
curl_init
curl_exec
配置
可以通过 运行时配置 禁用此扩展
OTEL_PHP_DISABLED_INSTRUMENTATIONS=io