File tree Expand file tree Collapse file tree 1 file changed +13
-0
lines changed
Expand file tree Collapse file tree 1 file changed +13
-0
lines changed Original file line number Diff line number Diff line change @@ -15,6 +15,18 @@ exporters:
1515 # https://www.googlecloudcommunity.com/gc/Data-Analytics/OpenTelemetry-and-GKE/m-p/674090/highlight/true#M3861
1616 timeout : 45s
1717processors :
18+ # https://github.com/open-telemetry/opentelemetry-collector-contrib/issues/23847
19+ transform/google_logs :
20+ log_statements :
21+ - context : resource
22+ statements :
23+ - truncate_all(attributes, 256000)
24+ - context : log
25+ statements :
26+ - set(attributes["truncate-body"], body)
27+ - truncate_all(attributes, 256000)
28+ - set(body, attributes["truncate-body"])
29+ - delete_key(attributes, "truncate-body")
1830 memory_limiter :
1931 check_interval : 1s
2032 limit_percentage : 70
@@ -94,6 +106,7 @@ service:
94106 receivers : [otlp]
95107 processors :
96108 [
109+ transform/google_logs,
97110 resource/cleanup_for_google,
98111 resourcedetection/ecs,
99112 memory_limiter,
You can’t perform that action at this time.
0 commit comments