fix(opentelemetry): correct attribute path for service and deployment in log transformation
Signed-off-by: zhenyus <zhenyus@mathmast.com>
This commit is contained in:
parent
c106c9a624
commit
802b9bf8ba
@ -48,8 +48,8 @@ spec:
|
||||
- context: log
|
||||
statements:
|
||||
- set(log.body["kubernetes"], log.attributes["kubernetes"])
|
||||
- set(log.attributes["service.name"], log.attributes["context"]["app"])
|
||||
- set(log.attributes["deployment.environment"], log.attributes["context"]["env"])
|
||||
- set(log.attributes["service"]["name"], log.attributes["context"]["app"])
|
||||
- set(log.attributes["deployment"]["environment"], log.attributes["context"]["env"])
|
||||
batch:
|
||||
send_batch_size: 5
|
||||
timeout: 10s
|
||||
|
||||
Loading…
Reference in New Issue
Block a user