From 9ae9558779077ebdac8b7031505db5e1eb8647ad Mon Sep 17 00:00:00 2001 From: Jay Camp Date: Fri, 29 Jan 2021 16:51:28 -0500 Subject: [PATCH] add k8s.node semantic conventions --- 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,