From e12dee4c85377ba5bf4aea7136a8bc51efb3d8e5 Mon Sep 17 00:00:00 2001 From: Jay Camp Date: Mon, 1 Feb 2021 12:30:21 -0500 Subject: [PATCH] Add k8s.node semantic conventions (#2425) --- translator/conventions/opentelemetry.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/translator/conventions/opentelemetry.go b/translator/conventions/opentelemetry.go index 08e1ae888ec..2cb6b4d27f8 100644 --- a/translator/conventions/opentelemetry.go +++ b/translator/conventions/opentelemetry.go @@ -48,6 +48,8 @@ const ( AttributeK8sJob = "k8s.job.name" AttributeK8sJobUID = "k8s.job.uid" AttributeK8sNamespace = "k8s.namespace.name" + AttributeK8sNodeName = "k8s.node.name" + AttributeK8sNodeUID = "k8s.node.uid" AttributeK8sPod = "k8s.pod.name" AttributeK8sPodUID = "k8s.pod.uid" AttributeK8sReplicaSet = "k8s.replicaset.name" @@ -149,6 +151,8 @@ func GetResourceSemanticConventionAttributeNames() []string { AttributeK8sJob, AttributeK8sJobUID, AttributeK8sNamespace, + AttributeK8sNodeName, + AttributeK8sNodeUID, AttributeK8sPod, AttributeK8sPodUID, AttributeK8sReplicaSet,