fix(opentelemetry): add batch configuration for log processing

Signed-off-by: zhenyus <zhenyus@mathmast.com>
This commit is contained in:
zhenyus 2025-04-21 20:03:10 +08:00
parent ebeea26864
commit ef0cf0fa87

View File

@ -95,6 +95,7 @@ spec:
- set(resource.attributes["body_json"]["kubernetes"]["namespace"], resource.attributes["k8s.namespace.name"])
- set(log.body, String(merge_maps(ParseJSON(log.body), resource.attributes["body_json"], "upsert")))
- delete_key(resource.attributes, "body_json")
batch:
send_batch_size: 5
timeout: 10s
exporters: