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

Breadcrumb

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

function Registry::resourceDetector

1 call to Registry::resourceDetector()
ResourceInfoFactory::defaultResource in vendor/open-telemetry/sdk/Resource/ResourceInfoFactory.php

File

vendor/open-telemetry/sdk/Registry.php, line 189

Class

Registry
A registry to enable central registration of components that the SDK requires but which may be provided by non-SDK modules, such as contrib and extension. @todo [breaking] deprecate this mechanism of setting up components, in favor of using SPI.

Namespace

OpenTelemetry\SDK

Code

public static function resourceDetector(string $name) : ResourceDetectorInterface {
    if (!array_key_exists($name, self::$resourceDetectors)) {
        throw new RuntimeException('Resource detector not registered for: ' . $name);
    }
    return self::$resourceDetectors[$name];
}

API Navigation

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