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

Breadcrumb

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

function MeterProvider::__construct

Parameters

iterable<MetricReaderInterface&MetricSourceRegistryInterface&DefaultAggregationProviderInterface> $metricReaders:

File

vendor/open-telemetry/sdk/Metrics/MeterProvider.php, line 37

Class

MeterProvider

Namespace

OpenTelemetry\SDK\Metrics

Code

public function __construct(?ContextStorageInterface $contextStorage, ResourceInfo $resource, ClockInterface $clock, AttributesFactoryInterface $attributesFactory, InstrumentationScopeFactoryInterface $instrumentationScopeFactory, iterable $metricReaders, ViewRegistryInterface $viewRegistry, ?ExemplarFilterInterface $exemplarFilter, StalenessHandlerFactoryInterface $stalenessHandlerFactory, MetricFactoryInterface $metricFactory = new StreamFactory(), ?Configurator $configurator = null) {
    $this->instruments = new MeterInstruments();
    $registry = new MetricRegistry($contextStorage, $attributesFactory, $clock);
    $this->registry = $registry;
    $this->writer = $registry;
    $this->destructors = new WeakMap();
    $this->meters = new WeakMap();
}

API Navigation

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