open-telemetry/extension-propagator-b3

B3 propagator extension for OpenTelemetry PHP.

1.0.1 2023-12-24 23:31 UTC

This package is auto-updated.

Last update: 2024-04-14 23:24:43 UTC


README

Releases Source Mirror Latest Version Stable

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.