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/api/Trace/Span.php | 59 -------------------------------- 1 file changed, 59 deletions(-) delete mode 100644 vendor/open-telemetry/api/Trace/Span.php (limited to 'vendor/open-telemetry/api/Trace/Span.php') diff --git a/vendor/open-telemetry/api/Trace/Span.php b/vendor/open-telemetry/api/Trace/Span.php deleted file mode 100644 index 88360e6cd..000000000 --- a/vendor/open-telemetry/api/Trace/Span.php +++ /dev/null @@ -1,59 +0,0 @@ -get(ContextKeys::span()) ?? self::getInvalid(); - } - - /** @inheritDoc */ - final public static function getCurrent(): SpanInterface - { - return self::fromContext(Context::getCurrent()); - } - - /** @inheritDoc */ - final public static function getInvalid(): SpanInterface - { - if (null === self::$invalidSpan) { - self::$invalidSpan = new NonRecordingSpan(SpanContext::getInvalid()); - } - - return self::$invalidSpan; - } - - /** @inheritDoc */ - final public static function wrap(SpanContextInterface $spanContext): SpanInterface - { - if (!$spanContext->isValid()) { - return self::getInvalid(); - } - - return new NonRecordingSpan($spanContext); - } - - /** @inheritDoc */ - final public function activate(): ScopeInterface - { - return Context::getCurrent()->withContextValue($this)->activate(); - } - - /** @inheritDoc */ - final public function storeInContext(ContextInterface $context): ContextInterface - { - return $context->with(ContextKeys::span(), $this); - } -} -- cgit v1.2.3-54-g00ecf