Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. LateBindingTextMapPropagator.php

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\Propagation
View 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

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal