InstrumentationScopeFactory.php
Namespace
OpenTelemetry\SDK\Common\InstrumentationFile
-
vendor/
open-telemetry/ sdk/ Common/ Instrumentation/ InstrumentationScopeFactory.php
View source
<?php
declare (strict_types=1);
namespace OpenTelemetry\SDK\Common\Instrumentation;
use OpenTelemetry\SDK\Common\Attribute\AttributesFactoryInterface;
final class InstrumentationScopeFactory implements InstrumentationScopeFactoryInterface {
public function __construct(AttributesFactoryInterface $attributesFactory) {
}
public function create(string $name, ?string $version = null, ?string $schemaUrl = null, iterable $attributes = []) : InstrumentationScopeInterface {
return new InstrumentationScope($name, $version, $schemaUrl, $this->attributesFactory
->builder($attributes)
->build());
}
}
Classes
Title | Deprecated | Summary |
---|---|---|
InstrumentationScopeFactory |