open-telemetry / opentelemetry-auto-psr18
PSR-18 (HTTP 客户端) 的 OpenTelemetry 自动检测。
1.0.4
2024-06-25 01:39 UTC
Requires
- php: ^8.0
- ext-opentelemetry: *
- open-telemetry/api: ^1.0
- open-telemetry/sem-conv: ^1.24
- psr/http-client: ^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
This package is auto-updated.
Last update: 2024-08-29 06:38:11 UTC
README
这是从 https://github.com/open-telemetry/opentelemetry-php-contrib 分离出来的只读子树。
OpenTelemetry PSR-18 自动检测
请阅读 https://opentelemetry.io/docs/instrumentation/php/automatic/ 了解如何安装和配置扩展和 SDK 的说明。
概述
通过 composer 注册自动检测钩子,这将
- 为发送的每个 PSR-18 请求自动创建跨度
- 在请求中添加
traceparent
头,以方便分布式跟踪
配置
可以通过 运行时配置 禁用此扩展
OTEL_PHP_DISABLED_INSTRUMENTATIONS=psr18