From 884fd92f1320d17daebb772297da03fb2cfa59b8 Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Tue, 1 Oct 2024 16:00:34 +0300 Subject: drop opentelemetry --- vendor/open-telemetry/context/ContextStorage.php | 57 ------------------------ 1 file changed, 57 deletions(-) delete mode 100644 vendor/open-telemetry/context/ContextStorage.php (limited to 'vendor/open-telemetry/context/ContextStorage.php') diff --git a/vendor/open-telemetry/context/ContextStorage.php b/vendor/open-telemetry/context/ContextStorage.php deleted file mode 100644 index e82d3d161..000000000 --- a/vendor/open-telemetry/context/ContextStorage.php +++ /dev/null @@ -1,57 +0,0 @@ - */ - private array $forks = []; - - public function __construct() - { - $this->current = $this->main = new ContextStorageHead($this); - } - - public function fork($id): void - { - $this->forks[$id] = clone $this->current; - } - - public function switch($id): void - { - $this->current = $this->forks[$id] ?? $this->main; - } - - public function destroy($id): void - { - unset($this->forks[$id]); - } - - public function scope(): ?ContextStorageScopeInterface - { - return ($this->current->node->head ?? null) === $this->current - ? $this->current->node - : null; - } - - public function current(): ContextInterface - { - return $this->current->node->context ?? Context::getRoot(); - } - - public function attach(ContextInterface $context): ContextStorageScopeInterface - { - return $this->current->node = new ContextStorageNode($context, $this->current, $this->current->node); - } - - private function __clone() - { - } -} -- cgit v1.2.3-54-g00ecf