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

Breadcrumb

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

function Meter::__construct

Parameters

iterable<MetricSourceRegistryInterface&DefaultAggregationProviderInterface> $metricRegistries:

ArrayAccess<object, ObservableCallbackDestructor> $destructors:

File

vendor/open-telemetry/sdk/Metrics/Meter.php, line 51

Class

Meter
@internal

Namespace

OpenTelemetry\SDK\Metrics

Code

public function __construct(MetricFactoryInterface $metricFactory, ResourceInfo $resource, ClockInterface $clock, StalenessHandlerFactoryInterface $stalenessHandlerFactory, iterable $metricRegistries, ViewRegistryInterface $viewRegistry, ?ExemplarFilterInterface $exemplarFilter, MeterInstruments $instruments, InstrumentationScopeInterface $instrumentationScope, MetricRegistryInterface $registry, MetricWriterInterface $writer, ArrayAccess $destructors, ?Configurator $configurator = null) {
    $this->config = $configurator?->resolve($this->instrumentationScope) ?? MeterConfig::default();
}

API Navigation

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