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

Breadcrumb

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

function Globals::meterProvider

2 calls to Globals::meterProvider()
CachedInstrumentation::meter in vendor/open-telemetry/api/Instrumentation/CachedInstrumentation.php
SdkAutoloader::createLateBindingMeterProvider in vendor/open-telemetry/sdk/SdkAutoloader.php

File

vendor/open-telemetry/api/Globals.php, line 46

Class

Globals
Provides access to the globally configured instrumentation instances.

Namespace

OpenTelemetry\API

Code

public static function meterProvider() : MeterProviderInterface {
    return Context::getCurrent()->get(ContextKeys::meterProvider()) ?? self::globals()->meterProvider;
}

API Navigation

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