1
0
mirror of https://github.com/open-telemetry/opentelemetry-go.git synced 2024-12-30 21:20:04 +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
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 4 deletions

View File

@ -16,6 +16,10 @@ This project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.htm
- Set default propagator to no-op propagator. (#1184)
### Removed
- Remove duplicate hostname key `HostHostNameKey` in Resource semantic conventions. (#1219)
## [0.12.0] - 2020-09-24
### Added

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")