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

Breadcrumb

  1. Drupal Core 11.1.x

AttributesFactory.php

Namespace

OpenTelemetry\SDK\Common\Attribute

File

vendor/open-telemetry/sdk/Common/Attribute/AttributesFactory.php

View source
<?php

declare (strict_types=1);
namespace OpenTelemetry\SDK\Common\Attribute;


/**
 * @internal
 */
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;
    }

}

Classes

Title Deprecated Summary
AttributesFactory @internal

API Navigation

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