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\AttributeView 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 |