aboutsummaryrefslogtreecommitdiff
path: root/vendor/open-telemetry/sdk/Trace/SpanLimits.php
diff options
context:
space:
mode:
authorAndrew Dolgov <fox@fakecake.org>2024-10-01 16:00:34 +0300
committerAndrew Dolgov <fox@fakecake.org>2024-10-01 16:00:34 +0300
commit884fd92f1320d17daebb772297da03fb2cfa59b8 (patch)
tree3aa80af1df6ffa1d70f21f9fc4411f451c8b6c56 /vendor/open-telemetry/sdk/Trace/SpanLimits.php
parent8fcc68baf5b0ff964a0a4a045353462586e0e316 (diff)
drop opentelemetry
Diffstat (limited to 'vendor/open-telemetry/sdk/Trace/SpanLimits.php')
-rw-r--r--vendor/open-telemetry/sdk/Trace/SpanLimits.php67
1 files changed, 0 insertions, 67 deletions
diff --git a/vendor/open-telemetry/sdk/Trace/SpanLimits.php b/vendor/open-telemetry/sdk/Trace/SpanLimits.php
deleted file mode 100644
index 4b07649fc..000000000
--- a/vendor/open-telemetry/sdk/Trace/SpanLimits.php
+++ /dev/null
@@ -1,67 +0,0 @@
-<?php
-
-declare(strict_types=1);
-
-namespace OpenTelemetry\SDK\Trace;
-
-use OpenTelemetry\SDK\Common\Attribute\AttributesFactoryInterface;
-
-final class SpanLimits
-{
- public const DEFAULT_SPAN_ATTRIBUTE_LENGTH_LIMIT = PHP_INT_MAX;
- public const DEFAULT_SPAN_ATTRIBUTE_COUNT_LIMIT = 128;
- public const DEFAULT_SPAN_EVENT_COUNT_LIMIT = 128;
- public const DEFAULT_SPAN_LINK_COUNT_LIMIT = 128;
- public const DEFAULT_EVENT_ATTRIBUTE_COUNT_LIMIT = 128;
- public const DEFAULT_LINK_ATTRIBUTE_COUNT_LIMIT = 128;
-
- private AttributesFactoryInterface $attributesFactory;
- private AttributesFactoryInterface $eventAttributesFactory;
- private AttributesFactoryInterface $linkAttributesFactory;
- private int $eventCountLimit;
- private int $linkCountLimit;
-
- public function getAttributesFactory(): AttributesFactoryInterface
- {
- return $this->attributesFactory;
- }
-
- public function getEventAttributesFactory(): AttributesFactoryInterface
- {
- return $this->eventAttributesFactory;
- }
-
- public function getLinkAttributesFactory(): AttributesFactoryInterface
- {
- return $this->linkAttributesFactory;
- }
-
- /** @return int Maximum allowed span event count */
- public function getEventCountLimit(): int
- {
- return $this->eventCountLimit;
- }
-
- /** @return int Maximum allowed span link count */
- public function getLinkCountLimit(): int
- {
- return $this->linkCountLimit;
- }
-
- /**
- * @internal Use {@see SpanLimitsBuilder} to create {@see SpanLimits} instance.
- */
- public function __construct(
- AttributesFactoryInterface $attributesFactory,
- AttributesFactoryInterface $eventAttributesFactory,
- AttributesFactoryInterface $linkAttributesFactory,
- int $eventCountLimit,
- int $linkCountLimit
- ) {
- $this->attributesFactory = $attributesFactory;
- $this->eventAttributesFactory = $eventAttributesFactory;
- $this->linkAttributesFactory = $linkAttributesFactory;
- $this->eventCountLimit = $eventCountLimit;
- $this->linkCountLimit = $linkCountLimit;
- }
-}