fix(opentelemetry): correct attribute path for service and deployment in log transformation

Signed-off-by: zhenyus <zhenyus@mathmast.com>
This commit is contained in:
zhenyus 2025-04-21 17:07:42 +08:00
parent c106c9a624
commit 802b9bf8ba

View File

@ -48,8 +48,8 @@ spec:
- context: log - context: log
statements: statements:
- set(log.body["kubernetes"], log.attributes["kubernetes"]) - set(log.body["kubernetes"], log.attributes["kubernetes"])
- set(log.attributes["service.name"], log.attributes["context"]["app"]) - set(log.attributes["service"]["name"], log.attributes["context"]["app"])
- set(log.attributes["deployment.environment"], log.attributes["context"]["env"]) - set(log.attributes["deployment"]["environment"], log.attributes["context"]["env"])
batch: batch:
send_batch_size: 5 send_batch_size: 5
timeout: 10s timeout: 10s