class NoopTextMapPropagator
Hierarchy
- class \OpenTelemetry\Context\Propagation\NoopTextMapPropagator implements \OpenTelemetry\Context\Propagation\TextMapPropagatorInterface
Expanded class hierarchy of NoopTextMapPropagator
5 files declare their use of NoopTextMapPropagator
- Configurator.php in vendor/
open-telemetry/ api/ Instrumentation/ Configurator.php - Context.php in vendor/
open-telemetry/ api/ Instrumentation/ AutoInstrumentation/ Context.php - InstrumentationTrait.php in vendor/
open-telemetry/ api/ Instrumentation/ InstrumentationTrait.php - PropagatorFactory.php in vendor/
open-telemetry/ sdk/ Propagation/ PropagatorFactory.php - SdkBuilder.php in vendor/
open-telemetry/ sdk/ SdkBuilder.php
File
-
vendor/
open-telemetry/ context/ Propagation/ NoopTextMapPropagator.php, line 10
Namespace
OpenTelemetry\Context\PropagationView source
final class NoopTextMapPropagator implements TextMapPropagatorInterface {
private static ?self $instance = null;
public static function getInstance() : self {
if (null === self::$instance) {
self::$instance = new self();
}
return self::$instance;
}
public function fields() : array {
return [];
}
public function extract($carrier, ?PropagationGetterInterface $getter = null, ?ContextInterface $context = null) : ContextInterface {
return $context ?? Context::getCurrent();
}
public function inject(&$carrier, ?PropagationSetterInterface $setter = null, ?ContextInterface $context = null) : void {
}
}
Members
Title Sort descending | Modifiers | Object type | Summary | Overriden Title |
---|---|---|---|---|
NoopTextMapPropagator::$instance | private static | property | ||
NoopTextMapPropagator::extract | public | function | Extracts specific values from the provided carrier into the provided {via an { | Overrides TextMapPropagatorInterface::extract |
NoopTextMapPropagator::fields | public | function | Returns list of fields that will be used by this propagator. | Overrides TextMapPropagatorInterface::fields |
NoopTextMapPropagator::getInstance | public static | function | ||
NoopTextMapPropagator::inject | public | function | Injects specific values from the provided {via an { | Overrides TextMapPropagatorInterface::inject |