open-telemetry / extension-propagator-b3
OpenTelemetry PHP 的 B3 传播器扩展。
1.1.0beta1
2024-06-28 01:44 UTC
Requires
- php: ^8.1
- open-telemetry/api: ^1.0
- open-telemetry/context: ^1.0
This package is auto-updated.
Last update: 2024-08-26 23:33:08 UTC
README
OpenTelemetry 扩展
B3 传播器
B3 是一个支持跨服务边界传播 trace 上下文的 "b3" 头部规范的传播器。(https://github.com/openzipkin/b3-propagation)。OpenTelemetry PHP B3 传播器扩展提供了使用 B3 单个头部(https://github.com/openzipkin/b3-propagation#single-header)以及 B3 多个头部(https://github.com/openzipkin/b3-propagation#multiple-headers)传播器的选项。
使用方法
B3 单个头部
B3Propagator::getB3SingleHeaderInstance()
B3 多个头部
B3Propagator::getB3MultiHeaderInstance()
以上两种都提供了 extract
和 inject
方法,分别用于从头部提取和注入。
贡献
此存储库是一个只读 git 子树分割。要贡献,请参阅主要的 OpenTelemetry PHP monorepo。