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

Breadcrumb

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

function ContextKeys::meterProvider

Return value

ContextKeyInterface<MeterProviderInterface>

3 calls to ContextKeys::meterProvider()
Configurator::storeInContext in vendor/open-telemetry/api/Instrumentation/Configurator.php
Returns a new {
Globals::globals in vendor/open-telemetry/api/Globals.php
@phan-suppress PhanTypeMismatchReturnNullable
Globals::meterProvider in vendor/open-telemetry/api/Globals.php

File

vendor/open-telemetry/api/Instrumentation/ContextKeys.php, line 33

Class

ContextKeys
@internal

Namespace

OpenTelemetry\API\Instrumentation

Code

public static function meterProvider() : ContextKeyInterface {
    static $instance;
    return $instance ??= Context::createKey(MeterProviderInterface::class);
}

API Navigation

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