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

Breadcrumb

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

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\Instrumentation
View 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
RSS feed
Powered by Drupal