diff options
Diffstat (limited to 'vendor/open-telemetry/api/Baggage/BaggageBuilderInterface.php')
-rw-r--r-- | vendor/open-telemetry/api/Baggage/BaggageBuilderInterface.php | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/vendor/open-telemetry/api/Baggage/BaggageBuilderInterface.php b/vendor/open-telemetry/api/Baggage/BaggageBuilderInterface.php new file mode 100644 index 000000000..301cfbc3c --- /dev/null +++ b/vendor/open-telemetry/api/Baggage/BaggageBuilderInterface.php @@ -0,0 +1,23 @@ +<?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; +} |