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

Breadcrumb

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

function SdkAutoloader::createLateBindingTracerProvider

1 call to SdkAutoloader::createLateBindingTracerProvider()
SdkAutoloader::registerInstrumentations in vendor/open-telemetry/sdk/SdkAutoloader.php
Register all {@link Instrumentation} configured through SPI @psalm-suppress ArgumentTypeCoercion

File

vendor/open-telemetry/sdk/SdkAutoloader.php, line 172

Class

SdkAutoloader
@psalm-suppress RedundantCast

Namespace

OpenTelemetry\SDK

Code

private static function createLateBindingTracerProvider() : TracerProviderInterface {
    return new LateBindingTracerProvider(static function () : TracerProviderInterface {
        $scope = Context::getRoot()->activate();
        try {
            return Globals::tracerProvider();
        } finally {
            $scope->detach();
        }
    });
}

API Navigation

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