open-telemetry/extension-propagator-b3

OpenTelemetry PHP 的 B3 传播器扩展。

1.1.0beta1 2024-06-28 01:44 UTC

README

Releases Source Mirror Latest Version Stable

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()

以上两种都提供了 extractinject 方法,分别用于从头部提取和注入。

贡献

此存储库是一个只读 git 子树分割。要贡献,请参阅主要的 OpenTelemetry PHP monorepo