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

Breadcrumb

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

class ProcessRuntime

Hierarchy

  • class \OpenTelemetry\SDK\Resource\Detectors\ProcessRuntime implements \OpenTelemetry\SDK\Resource\ResourceDetectorInterface

Expanded class hierarchy of ProcessRuntime

See also

https://github.com/open-telemetry/opentelemetry-specification/blob/v1.8…

File

vendor/open-telemetry/sdk/Resource/Detectors/ProcessRuntime.php, line 17

Namespace

OpenTelemetry\SDK\Resource\Detectors
View source
final class ProcessRuntime implements ResourceDetectorInterface {
    public function getResource() : ResourceInfo {
        $attributes = [
            ResourceAttributes::PROCESS_RUNTIME_NAME => php_sapi_name(),
            ResourceAttributes::PROCESS_RUNTIME_VERSION => PHP_VERSION,
        ];
        return ResourceInfo::create(Attributes::create($attributes), ResourceAttributes::SCHEMA_URL);
    }

}

Members

Title Sort descending Modifiers Object type Summary Overriden Title
ProcessRuntime::getResource public function Overrides ResourceDetectorInterface::getResource

API Navigation

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