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\MetricsCode
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();
}