From 884fd92f1320d17daebb772297da03fb2cfa59b8 Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Tue, 1 Oct 2024 16:00:34 +0300 Subject: drop opentelemetry --- .../open-telemetry/sdk/Trace/TracerSharedState.php | 100 --------------------- 1 file changed, 100 deletions(-) delete mode 100644 vendor/open-telemetry/sdk/Trace/TracerSharedState.php (limited to 'vendor/open-telemetry/sdk/Trace/TracerSharedState.php') diff --git a/vendor/open-telemetry/sdk/Trace/TracerSharedState.php b/vendor/open-telemetry/sdk/Trace/TracerSharedState.php deleted file mode 100644 index d0540cc1f..000000000 --- a/vendor/open-telemetry/sdk/Trace/TracerSharedState.php +++ /dev/null @@ -1,100 +0,0 @@ -idGenerator = $idGenerator; - $this->resource = $resource; - $this->spanLimits = $spanLimits; - $this->sampler = $sampler; - - switch (count($spanProcessors)) { - case 0: - $this->spanProcessor = NoopSpanProcessor::getInstance(); - - break; - case 1: - $this->spanProcessor = $spanProcessors[0]; - - break; - default: - $this->spanProcessor = new MultiSpanProcessor(...$spanProcessors); - - break; - } - } - - public function hasShutdown(): bool - { - return null !== $this->shutdownResult; - } - - public function getIdGenerator(): IdGeneratorInterface - { - return $this->idGenerator; - } - - public function getResource(): ResourceInfo - { - return $this->resource; - } - - public function getSpanLimits(): SpanLimits - { - return $this->spanLimits; - } - - public function getSampler(): SamplerInterface - { - return $this->sampler; - } - - public function getSpanProcessor(): SpanProcessorInterface - { - return $this->spanProcessor; - } - - /** - * Returns `false` is the provider is already shutdown, otherwise `true`. - */ - public function shutdown(?CancellationInterface $cancellation = null): bool - { - return $this->shutdownResult ?? ($this->shutdownResult = $this->spanProcessor->shutdown($cancellation)); - } -} -- cgit v1.2.3-54-g00ecf