Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

List the machine-id as potential source for a unique host.id #2978

Merged
merged 10 commits into from
Nov 29, 2022
Next Next commit
List the machine-id as potential source for a unique host.id
Signed-off-by: svrnm <neumanns@cisco.com>
  • Loading branch information
svrnm committed Nov 22, 2022
commit 9a89d5232e9392e5c36497c77b09d6e8d61ab94b
3 changes: 2 additions & 1 deletion semantic_conventions/resource/host.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,8 @@ groups:
type: string
brief: >
Unique host ID. For Cloud, this must be the instance_id assigned by the cloud provider.
examples: ['opentelemetry-test']
For linux systems, the `machine-id` located in `/etc/machine-id` or `/var/lib/dbus/machine-id` may be used.
svrnm marked this conversation as resolved.
Show resolved Hide resolved
examples: ['fdbf79e8af94cb7f9e8df36789187052']
- id: name
type: string
brief: >
Expand Down
2 changes: 1 addition & 1 deletion specification/resource/semantic_conventions/host.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
<!-- semconv host -->
| Attribute | Type | Description | Examples | Requirement Level |
|---|---|---|---|---|
| `host.id` | string | Unique host ID. For Cloud, this must be the instance_id assigned by the cloud provider. | `opentelemetry-test` | Recommended |
| `host.id` | string | Unique host ID. For Cloud, this must be the instance_id assigned by the cloud provider. For linux systems, the `machine-id` located in `/etc/machine-id` or `/var/lib/dbus/machine-id` may be used. | `fdbf79e8af94cb7f9e8df36789187052` | Recommended |
| `host.name` | string | Name of the host. On Unix systems, it may contain what the hostname command returns, or the fully qualified hostname, or another name specified by the user. | `opentelemetry-test` | Recommended |
| `host.type` | string | Type of host. For Cloud, this must be the machine type. | `n1-standard-1` | Recommended |
| `host.arch` | string | The CPU architecture the host system is running on. | `amd64` | Recommended |
Expand Down