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

Breadcrumb

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

function BaggageBuilder::set

@inheritDoc

Overrides BaggageBuilderInterface::set

File

vendor/open-telemetry/api/Baggage/BaggageBuilder.php, line 23

Class

BaggageBuilder

Namespace

OpenTelemetry\API\Baggage

Code

public function set(string $key, $value, ?MetadataInterface $metadata = null) : BaggageBuilderInterface {
    $metadata ??= Metadata::getEmpty();
    $this->entries[$key] = new Entry($value, $metadata);
    return $this;
}

API Navigation

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