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

Breadcrumb

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

function MeterProviderBuilder::build

@psalm-suppress PossiblyInvalidArgument

File

vendor/open-telemetry/sdk/Metrics/MeterProviderBuilder.php, line 66

Class

MeterProviderBuilder

Namespace

OpenTelemetry\SDK\Metrics

Code

public function build() : MeterProviderInterface {
    return new MeterProvider(null, $this->resource ?? ResourceInfoFactory::emptyResource(), $this->clock ?? Clock::getDefault(), Attributes::factory(), new InstrumentationScopeFactory(Attributes::factory()), $this->metricReaders, new CriteriaViewRegistry(), $this->exemplarFilter ?? new WithSampledTraceExemplarFilter(), new NoopStalenessHandlerFactory(), configurator: $this->configurator ?? Configurator::meter());
}

API Navigation

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