open-telemetry / extension-propagator-b3
B3 propagator extension for OpenTelemetry PHP.
Requires
- php: ^8.1
- open-telemetry/api: ^1.0
- open-telemetry/context: ^1.0
This package is auto-updated.
Last update: 2024-12-02 13:12:22 UTC
README
OpenTelemetry Extension
B3 Propagator
B3 is a propagator that supports the specification for the header "b3" used for trace context propagation across service boundaries.(https://github.com/openzipkin/b3-propagation). OpenTelemetry PHP B3 Propagator Extension provides option to use B3 single header(https://github.com/openzipkin/b3-propagation#single-header) as well as B3 multi header (https://github.com/openzipkin/b3-propagation#multiple-headers) propagators.
Usage
For B3 single header:
B3Propagator::getB3SingleHeaderInstance()
For B3 multi header:
B3Propagator::getB3MultiHeaderInstance()
Both of the above have extract
and inject
methods available to extract and inject respectively into the
header.
Contributing
This repository is a read-only git subtree split. To contribute, please see the main OpenTelemetry PHP monorepo.