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

Breadcrumb

  1. Drupal Core 11.1.x

InstrumentationScopeFactory.php

Namespace

OpenTelemetry\SDK\Common\Instrumentation

File

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

API Navigation

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