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

Breadcrumb

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

function AttributesFactory::builder

Overrides AttributesFactoryInterface::builder

File

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

Class

AttributesFactory
@internal

Namespace

OpenTelemetry\SDK\Common\Attribute

Code

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

API Navigation

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