aboutsummaryrefslogtreecommitdiff
path: root/vendor/open-telemetry/api/Baggage/BaggageInterface.php
diff options
context:
space:
mode:
authorAndrew Dolgov <fox@fakecake.org>2024-10-01 14:54:29 +0000
committerAndrew Dolgov <fox@fakecake.org>2024-10-01 14:54:29 +0000
commitdf33ddaea1e46b5b923440d6383fa3ae85c4d60b (patch)
tree89c510638669466453c7451f5eb493f50e850de0 /vendor/open-telemetry/api/Baggage/BaggageInterface.php
parent8fcc68baf5b0ff964a0a4a045353462586e0e316 (diff)
parent7e0f5f295c0480023098edca5e3f5a806bd93bab (diff)
Merge branch 'drop-opentelemetry' into 'master'
drop opentelemetry See merge request tt-rss/tt-rss!68
Diffstat (limited to 'vendor/open-telemetry/api/Baggage/BaggageInterface.php')
-rw-r--r--vendor/open-telemetry/api/Baggage/BaggageInterface.php62
1 files changed, 0 insertions, 62 deletions
diff --git a/vendor/open-telemetry/api/Baggage/BaggageInterface.php b/vendor/open-telemetry/api/Baggage/BaggageInterface.php
deleted file mode 100644
index 83f45755d..000000000
--- a/vendor/open-telemetry/api/Baggage/BaggageInterface.php
+++ /dev/null
@@ -1,62 +0,0 @@
-<?php
-
-declare(strict_types=1);
-
-namespace OpenTelemetry\API\Baggage;
-
-use OpenTelemetry\API\Baggage as API;
-use OpenTelemetry\Context\ContextInterface;
-use OpenTelemetry\Context\ImplicitContextKeyedInterface;
-
-/**
- * @see https://github.com/open-telemetry/opentelemetry-specification/blob/v1.6.1/specification/baggage/api.md#operations
- */
-interface BaggageInterface extends ImplicitContextKeyedInterface
-{
- /**
- * Returns the {@see API\BaggageInterface} from the provided *$context*,
- * falling back on {@see API\BaggageInterface::getEmpty()} if there is no baggage in the provided context.
- */
- public static function fromContext(ContextInterface $context): API\BaggageInterface;
-
- /**
- * Returns a new empty {@see API\BaggageBuilderInterface}.
- */
- public static function getBuilder(): API\BaggageBuilderInterface;
-
- /**
- * Returns the current {@see Baggage} from the current {@see ContextInterface},
- * falling back on {@see API\BaggageInterface::getEmpty()} if there is no baggage in the current context.
- */
- public static function getCurrent(): API\BaggageInterface;
-
- /**
- * Returns a new {@see API\BaggageInterface} with no entries.
- */
- public static function getEmpty(): API\BaggageInterface;
-
- /**
- * @see https://github.com/open-telemetry/opentelemetry-specification/blob/v1.6.1/specification/baggage/api.md#get-value
- */
- public function getEntry(string $key): ?API\Entry;
-
- /**
- * Returns the value from the {@see API\Entry} with the provided *key*.
- * @see getEntry
- *
- * @return mixed
- */
- public function getValue(string $key);
-
- /**
- * @see https://github.com/open-telemetry/opentelemetry-specification/blob/v1.6.1/specification/baggage/api.md#get-all-values
- */
- public function getAll(): iterable;
-
- public function isEmpty(): bool;
-
- /**
- * Returns a new {@see API\BaggageBuilderInterface} pre-initialized with the contents of `$this`.
- */
- public function toBuilder(): API\BaggageBuilderInterface;
-}