https://github.com/opentelemetry-php/extension-propagator-b3
[READONLY] b3 propagator
https://github.com/opentelemetry-php/extension-propagator-b3
Last synced: about 1 year ago
JSON representation
[READONLY] b3 propagator
- Host: GitHub
- URL: https://github.com/opentelemetry-php/extension-propagator-b3
- Owner: opentelemetry-php
- Created: 2022-08-23T10:42:32.000Z (almost 4 years ago)
- Default Branch: main
- Last Pushed: 2024-08-26T23:33:05.000Z (almost 2 years ago)
- Last Synced: 2024-09-27T07:45:39.385Z (almost 2 years ago)
- Language: PHP
- Size: 29.3 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
[](https://github.com/opentelemetry-php/extension-propagator-b3/releases)
[](https://github.com/open-telemetry/opentelemetry-php/tree/main/src/Extension/Propagator/B3)
[](https://github.com/opentelemetry-php/extension-propagator-b3)
[](https://packagist.org/packages/open-telemetry/extension-propagator-b3/)
[](https://packagist.org/packages/open-telemetry/extension-propagator-b3/)
# 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:
```text
B3Propagator::getB3SingleHeaderInstance()
```
For B3 multi header:
```text
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](https://github.com/open-telemetry/opentelemetry-php).