fix(opentelemetry): enhance log transformation logic to include merging attributes

Signed-off-by: zhenyus <zhenyus@mathmast.com>
This commit is contained in:
zhenyus 2025-04-21 14:46:52 +08:00
parent 19626a44fa
commit 3daf27cb4d

View File

@ -61,7 +61,7 @@ spec:
log_statements: log_statements:
- context: log - context: log
statements: statements:
- merge_maps(body, body.attributes) - set(body, merge_maps(body, body.attributes, true))
- delete_key(body, "attributes") - delete_key(body, "attributes")
- delete_key(body, "resources") - delete_key(body, "resources")
batch: batch: