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

Breadcrumb

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

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

Baggage

Namespace

OpenTelemetry\API\Baggage

Code

public static function fromContext(ContextInterface $context) : BaggageInterface {
    return $context->get(ContextKeys::baggage()) ?? self::getEmpty();
}

API Navigation

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