class LateBindingTextMapPropagator
@internal
Hierarchy
- class \OpenTelemetry\SDK\Propagation\LateBindingTextMapPropagator implements \OpenTelemetry\Context\Propagation\TextMapPropagatorInterface
Expanded class hierarchy of LateBindingTextMapPropagator
1 file declares its use of LateBindingTextMapPropagator
- SdkAutoloader.php in vendor/
open-telemetry/ sdk/ SdkAutoloader.php
File
-
vendor/
open-telemetry/ sdk/ Propagation/ LateBindingTextMapPropagator.php, line 16
Namespace
OpenTelemetry\SDK\PropagationView source
final class LateBindingTextMapPropagator implements TextMapPropagatorInterface {
/**
* @param TextMapPropagatorInterface|Closure(): TextMapPropagatorInterface $propagator
*/
public function __construct(TextMapPropagatorInterface|Closure $propagator) {
}
public function fields() : array {
if (!$this->propagator instanceof TextMapPropagatorInterface) {
$this->propagator = ($this->propagator)();
}
return $this->propagator
->fields();
}
public function inject(mixed &$carrier, ?PropagationSetterInterface $setter = null, ?ContextInterface $context = null) : void {
if (!$this->propagator instanceof TextMapPropagatorInterface) {
$this->propagator = ($this->propagator)();
}
$this->propagator
->inject($carrier, $setter, $context);
}
public function extract($carrier, ?PropagationGetterInterface $getter = null, ?ContextInterface $context = null) : ContextInterface {
if (!$this->propagator instanceof TextMapPropagatorInterface) {
$this->propagator = ($this->propagator)();
}
return $this->propagator
->extract($carrier, $getter, $context);
}
}
Members
Title Sort descending | Modifiers | Object type | Summary | Overriden Title |
---|---|---|---|---|
LateBindingTextMapPropagator::extract | public | function | Extracts specific values from the provided carrier into the provided {via an { | Overrides TextMapPropagatorInterface::extract |
LateBindingTextMapPropagator::fields | public | function | Returns list of fields that will be used by this propagator. | Overrides TextMapPropagatorInterface::fields |
LateBindingTextMapPropagator::inject | public | function | Injects specific values from the provided {via an { | Overrides TextMapPropagatorInterface::inject |
LateBindingTextMapPropagator::__construct | public | function |