function Registry::textMapPropagator
1 call to Registry::textMapPropagator()
- PropagatorFactory::buildPropagator in vendor/
open-telemetry/ sdk/ Propagation/ PropagatorFactory.php
File
-
vendor/
open-telemetry/ sdk/ Registry.php, line 180
Class
- Registry
- A registry to enable central registration of components that the SDK requires but which may be provided by non-SDK modules, such as contrib and extension. @todo [breaking] deprecate this mechanism of setting up components, in favor of using SPI.
Namespace
OpenTelemetry\SDKCode
public static function textMapPropagator(string $name) : TextMapPropagatorInterface {
if (!array_key_exists($name, self::$textMapPropagators)) {
throw new RuntimeException('Text map propagator not registered for: ' . $name);
}
return self::$textMapPropagators[$name];
}