Open
Description
The k8sattributes processor recently added support for automatic the service.name
resource attribute:
According to https://opentelemetry.io/docs/specs/semconv/non-normative/k8s-attributes/#how-servicename-should-be-calculated, the service.name
is extract from the first of these attributes:
- pod.annotation[resource.opentelemetry.io/service.name]
- pod.label[app.kubernetes.io/instance]
- pod.label[app.kubernetes.io/name]
- k8s.deployment.name
- k8s.replicaset.name
- k8s.statefulset.name
- k8s.daemonset.name
- k8s.cronjob.name
- k8s.job.name
- k8s.pod.name
- k8s.container.name
This means that, if k8sprocessor has been configured with service.name
,
replicasets
(to access k8s.deployment.name
).