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

Breadcrumb

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

function Host::getMachineId

1 call to Host::getMachineId()
Host::getResource in vendor/open-telemetry/sdk/Resource/Detectors/Host.php

File

vendor/open-telemetry/sdk/Resource/Detectors/Host.php, line 39

Class

Host

Namespace

OpenTelemetry\SDK\Resource\Detectors

Code

private function getMachineId() : ?string {
    return match ($this->os) {    'Linux' => $this->getLinuxId(),
        'BSD' => $this->getBsdId(),
        'Darwin' => $this->getMacOsId(),
        'Windows' => $this->getWindowsId(),
        default => null,
    
    };
}

API Navigation

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