Expand description
Host machine identifier, mirroring pkg/util/uuid.GetUUID() in the Go agent.
| Platform | Source |
|---|---|
| Linux | /sys/class/dmi/id/product_uuid then /etc/machine-id → /proc/sys/kernel/random/boot_id |
| macOS | gethostuuid(3) |
| Windows | HKLM\SOFTWARE\Microsoft\Cryptography\MachineGuid |
| Other | "" |
All values are normalised to lowercase xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx.
Returns "" on failure rather than a random UUID — the backend can detect
a missing value but not a wrong one.
Functions§
- get_
machine_ id - Returns the host machine ID as a lowercase hyphenated UUID, cached for the process lifetime.
Returns
""on failure or unsupported platforms.