fix(opentelemetry): streamline attributes configuration by removing redundant labeling actions

Signed-off-by: zhenyus <zhenyus@mathmast.com>
This commit is contained in:
zhenyus 2025-04-21 16:19:03 +08:00
parent 222f5ee0fb
commit 4ee81552a2

View File

@ -43,7 +43,7 @@ spec:
- k8s.deployment.uid
- k8s.namespace.name
- k8s.node.name
attributes/k8s:
attributes:
actions:
- action: insert
key: kubernetes.pod_name
@ -66,8 +66,6 @@ spec:
- action: insert
key: kubernetes.node_name
from_attribute: k8s.node.name
attributes/labeling:
actions:
- action: insert
key: app
from_attribute: context.app
@ -93,6 +91,6 @@ spec:
pipelines:
logs:
receivers: [filelog]
processors: [k8sattributes, attributes/k8s, attributes/labeling, transform, batch]
processors: [k8sattributes, attributes, transform, batch]
exporters: [otlphttp/logs, debug]
{{- end }}