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; } }