Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. SpanLimits.php

class SpanLimits

Hierarchy

  • class \OpenTelemetry\SDK\Trace\SpanLimits

Expanded class hierarchy of SpanLimits

File

vendor/open-telemetry/sdk/Trace/SpanLimits.php, line 9

Namespace

OpenTelemetry\SDK\Trace
View source
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;
    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) {
    }

}

Members

Title Sort descending Modifiers Object type Summary
SpanLimits::DEFAULT_EVENT_ATTRIBUTE_COUNT_LIMIT public constant
SpanLimits::DEFAULT_LINK_ATTRIBUTE_COUNT_LIMIT public constant
SpanLimits::DEFAULT_SPAN_ATTRIBUTE_COUNT_LIMIT public constant
SpanLimits::DEFAULT_SPAN_ATTRIBUTE_LENGTH_LIMIT public constant
SpanLimits::DEFAULT_SPAN_EVENT_COUNT_LIMIT public constant
SpanLimits::DEFAULT_SPAN_LINK_COUNT_LIMIT public constant
SpanLimits::getAttributesFactory public function
SpanLimits::getEventAttributesFactory public function
SpanLimits::getEventCountLimit public function
SpanLimits::getLinkAttributesFactory public function
SpanLimits::getLinkCountLimit public function
SpanLimits::__construct public function @internal Use {

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal