1
0
mirror of https://github.com/open-telemetry/opentelemetry-go.git synced 2025-09-16 09:26:25 +02:00

Remove duplicate hostname in Resource (#1219)

* Remove duplicate hostname in Resource

- Refer to opentelemetry-specification

Signed-off-by: Hui Kang <kangh@us.ibm.com>

* Update CHANGELOG.md

Co-authored-by: Tyler Yahn <MrAlias@users.noreply.github.com>
This commit is contained in:
huikang
2020-10-01 11:28:27 -04:00
committed by GitHub
parent 423c891359
commit dc79f7fe25
2 changed files with 5 additions and 4 deletions

View File

@@ -179,12 +179,9 @@ const (
// Semantic conventions for host resource attribute keys.
const (
// A uniquely identifying name for the host.
// A uniquely identifying name for the host: 'hostname', FQDN, or user specified name
HostNameKey = label.Key("host.name")
// A hostname as returned by the 'hostname' command on host machine.
HostHostNameKey = label.Key("host.hostname")
// Unique host ID. For cloud environments this will be the instance ID.
HostIDKey = label.Key("host.id")