Flow PHP

HostDetector implements ResourceDetector

Read onlyYes
FinalYes

Detects host information.

Detects the following attributes:

  • host.name: The hostname of the machine
  • host.arch: The CPU architecture (amd64, arm64, etc.)
  • host.id: Unique host identifier (from /etc/machine-id on Linux)

Example output:

host.name: my-laptop
host.arch: arm64
host.id: 123e4567-e89b-12d3-a456-426614174000

Interfaces

ResourceDetector
Interface for detecting resource attributes from the environment.

Methods

detect()  : Resource
Detect resource attributes from the environment.

Methods


        
On this page

Search results