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

Breadcrumb

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

class AttributesFactory

@internal

Hierarchy

  • class \OpenTelemetry\SDK\Common\Attribute\AttributesFactory implements \OpenTelemetry\SDK\Common\Attribute\AttributesFactoryInterface

Expanded class hierarchy of AttributesFactory

File

vendor/open-telemetry/sdk/Common/Attribute/AttributesFactory.php, line 10

Namespace

OpenTelemetry\SDK\Common\Attribute
View source
final class AttributesFactory implements AttributesFactoryInterface {
    public function __construct(?int $attributeCountLimit = null, ?int $attributeValueLengthLimit = null) {
    }
    public function builder(iterable $attributes = [], ?AttributeValidatorInterface $attributeValidator = null) : AttributesBuilderInterface {
        $builder = new AttributesBuilder([], $this->attributeCountLimit, $this->attributeValueLengthLimit, 0, $attributeValidator ?? new AttributeValidator());
        foreach ($attributes as $key => $value) {
            $builder[$key] = $value;
        }
        return $builder;
    }

}

Members

Title Sort descending Modifiers Object type Summary Overriden Title
AttributesFactory::builder public function Overrides AttributesFactoryInterface::builder
AttributesFactory::__construct public function

API Navigation

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