function Baggage::fromContext
@inheritDoc
Overrides BaggageInterface::fromContext
2 calls to Baggage::fromContext()
- Baggage::getCurrent in vendor/
open-telemetry/ api/ Baggage/ Baggage.php - @inheritDoc
- BaggagePropagator::inject in vendor/
open-telemetry/ api/ Baggage/ Propagation/ BaggagePropagator.php - Injects specific values from the provided {via an {
File
-
vendor/
open-telemetry/ api/ Baggage/ Baggage.php, line 17
Class
Namespace
OpenTelemetry\API\BaggageCode
public static function fromContext(ContextInterface $context) : BaggageInterface {
return $context->get(ContextKeys::baggage()) ?? self::getEmpty();
}