ttrss/vendor/open-telemetry/api/Baggage/BaggageBuilderInterface.php

24 lines
698 B
PHP
Raw Normal View History

2023-10-20 14:12:29 +00:00
<?php
declare(strict_types=1);
namespace OpenTelemetry\API\Baggage;
use OpenTelemetry\API\Baggage as API;
interface BaggageBuilderInterface
{
/**
* @see https://github.com/open-telemetry/opentelemetry-specification/blob/v1.6.1/specification/baggage/api.md#set-value
* @param mixed $value
*/
public function set(string $key, $value, API\MetadataInterface $metadata = null): API\BaggageBuilderInterface;
/**
* @see https://github.com/open-telemetry/opentelemetry-specification/blob/v1.6.1/specification/baggage/api.md#remove-value
*/
public function remove(string $key): API\BaggageBuilderInterface;
public function build(): API\BaggageInterface;
}