class InstrumentationScopeFactory
Hierarchy
- class \OpenTelemetry\SDK\Common\Instrumentation\InstrumentationScopeFactory implements \OpenTelemetry\SDK\Common\Instrumentation\InstrumentationScopeFactoryInterface
Expanded class hierarchy of InstrumentationScopeFactory
4 files declare their use of InstrumentationScopeFactory
- LoggerProviderBuilder.php in vendor/
open-telemetry/ sdk/ Logs/ LoggerProviderBuilder.php - LoggerProviderFactory.php in vendor/
open-telemetry/ sdk/ Logs/ LoggerProviderFactory.php - MeterProviderBuilder.php in vendor/
open-telemetry/ sdk/ Metrics/ MeterProviderBuilder.php - TracerProvider.php in vendor/
open-telemetry/ sdk/ Trace/ TracerProvider.php
File
-
vendor/
open-telemetry/ sdk/ Common/ Instrumentation/ InstrumentationScopeFactory.php, line 9
Namespace
OpenTelemetry\SDK\Common\InstrumentationView source
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());
}
}
Members
Title Sort descending | Modifiers | Object type | Summary | Overriden Title |
---|---|---|---|---|
InstrumentationScopeFactory::create | public | function | Overrides InstrumentationScopeFactoryInterface::create | |
InstrumentationScopeFactory::__construct | public | function |