aboutsummaryrefslogtreecommitdiff
path: root/vendor/open-telemetry/sdk/Trace/SamplingResult.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/sdk/Trace/SamplingResult.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/sdk/Trace/SamplingResult.php')
-rw-r--r--vendor/open-telemetry/sdk/Trace/SamplingResult.php71
1 files changed, 0 insertions, 71 deletions
diff --git a/vendor/open-telemetry/sdk/Trace/SamplingResult.php b/vendor/open-telemetry/sdk/Trace/SamplingResult.php
deleted file mode 100644
index 5701b7bc6..000000000
--- a/vendor/open-telemetry/sdk/Trace/SamplingResult.php
+++ /dev/null
@@ -1,71 +0,0 @@
-<?php
-
-declare(strict_types=1);
-
-namespace OpenTelemetry\SDK\Trace;
-
-use OpenTelemetry\API\Trace as API;
-
-final class SamplingResult
-{
- /**
- * Span will not be recorded and all events and attributes will be dropped.
- */
- public const DROP = 0;
-
- /**
- * Span will be recorded but SpanExporters will not receive this Span.
- */
- public const RECORD_ONLY = 1;
-
- /**
- * Span will be recorder and exported.
- */
- public const RECORD_AND_SAMPLE = 2;
-
- /**
- * @var int A sampling Decision.
- */
- private int $decision;
-
- /**
- * @var iterable A set of span Attributes that will also be added to the Span.
- */
- private iterable $attributes;
-
- /**
- * @var ?API\TraceStateInterface A Tracestate that will be associated with the Span through the new SpanContext.
- */
- private ?API\TraceStateInterface $traceState;
-
- public function __construct(int $decision, iterable $attributes = [], ?API\TraceStateInterface $traceState = null)
- {
- $this->decision = $decision;
- $this->attributes = $attributes;
- $this->traceState = $traceState;
- }
-
- /**
- * Return sampling decision whether span should be recorded or not.
- */
- public function getDecision(): int
- {
- return $this->decision;
- }
-
- /**
- * Return attributes which will be attached to the span.
- */
- public function getAttributes(): iterable
- {
- return $this->attributes;
- }
-
- /**
- * Return a collection of links that will be associated with the Span to be created.
- */
- public function getTraceState(): ?API\TraceStateInterface
- {
- return $this->traceState;
- }
-}