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

Breadcrumb

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

function ContextKeys::tracerProvider

Return value

ContextKeyInterface<TracerProviderInterface>

3 calls to ContextKeys::tracerProvider()
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::tracerProvider in vendor/open-telemetry/api/Globals.php

File

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

Class

ContextKeys
@internal

Namespace

OpenTelemetry\API\Instrumentation

Code

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

API Navigation

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