diff --git a/CHANGELOG.md b/CHANGELOG.md index 583bcbc791d..6b978ececaa 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -36,6 +36,7 @@ This project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.htm - `trace.TraceFlags` is now a defined type over `byte` and `WithSampled(bool) TraceFlags` and `IsSampled() bool` methods have been added to it. (#1770) - The `Event` and `Link` struct types from the `go.opentelemetry.io/otel` package now include a `DroppedAttributeCount` field to record the number of attributes that were not recorded due to configured limits being reached. (#1771) - The Jaeger exporter now reports dropped attributes for a Span event in the exported log. (#1771) +- Adds `k8s.node.name` and `k8s.node.uid` attribute keys to the `semconv` package. (#1789) ### Fixed diff --git a/semconv/resource.go b/semconv/resource.go index 733b8d46914..188dacee4f1 100644 --- a/semconv/resource.go +++ b/semconv/resource.go @@ -128,6 +128,12 @@ const ( // GKE clusters have a name which can be used for this attribute. K8SClusterNameKey = attribute.Key("k8s.cluster.name") + // The name of the Node. + K8SNodeNameKey = attribute.Key("k8s.node.name") + + // The UID of the Node. + K8SNodeUIDKey = attribute.Key("k8s.node.uid") + // The name of the namespace that the pod is running in. K8SNamespaceNameKey = attribute.Key("k8s.namespace.name")