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