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/api/Trace/NoopSpanBuilder.php | 65 ---------------------- 1 file changed, 65 deletions(-) delete mode 100644 vendor/open-telemetry/api/Trace/NoopSpanBuilder.php (limited to 'vendor/open-telemetry/api/Trace/NoopSpanBuilder.php') diff --git a/vendor/open-telemetry/api/Trace/NoopSpanBuilder.php b/vendor/open-telemetry/api/Trace/NoopSpanBuilder.php deleted file mode 100644 index 6f971e525..000000000 --- a/vendor/open-telemetry/api/Trace/NoopSpanBuilder.php +++ /dev/null @@ -1,65 +0,0 @@ -contextStorage = $contextStorage; - } - - public function setParent($context): SpanBuilderInterface - { - $this->parentContext = $context; - - return $this; - } - - public function addLink(SpanContextInterface $context, iterable $attributes = []): SpanBuilderInterface - { - return $this; - } - - public function setAttribute(string $key, $value): SpanBuilderInterface - { - return $this; - } - - public function setAttributes(iterable $attributes): SpanBuilderInterface - { - return $this; - } - - public function setStartTimestamp(int $timestampNanos): SpanBuilderInterface - { - return $this; - } - - public function setSpanKind(int $spanKind): SpanBuilderInterface - { - return $this; - } - - public function startSpan(): SpanInterface - { - $parentContext = Context::resolve($this->parentContext, $this->contextStorage); - $span = Span::fromContext($parentContext); - if ($span->isRecording()) { - $span = Span::wrap($span->getContext()); - } - - return $span; - } -} -- cgit v1.2.3-54-g00ecf