From 0433a18ab619fb11429db005aa2b808024b537e2 Mon Sep 17 00:00:00 2001 From: Mikko Viitanen Date: Tue, 21 Jan 2025 09:34:49 +0200 Subject: [PATCH 1/2] Fix envoy access logs - Remove attributes that cause problems in the Collector --- src/frontend-proxy/envoy.tmpl.yaml | 40 ------------------------------ 1 file changed, 40 deletions(-) diff --git a/src/frontend-proxy/envoy.tmpl.yaml b/src/frontend-proxy/envoy.tmpl.yaml index 6ddbf7b6da..5355e2b6dc 100644 --- a/src/frontend-proxy/envoy.tmpl.yaml +++ b/src/frontend-proxy/envoy.tmpl.yaml @@ -91,45 +91,6 @@ static_resources: - key: "event.name" value: string_value: "proxy.access" - - key: "http.connection.id" - value: - string_value: "%CONNECTION_ID%" - - key: "http.protocol" - value: - string_value: "%PROTOCOL%" - - key: "http.request.body.size" - value: - string_value: "%BYTES_RECEIVED%" - - key: "http.request.header.x-forwarded-for" - value: - string_value: "%REQ(X-FORWARDED-FOR)%" - - key: "http.request.header.x-request-id" - value: - string_value: "%REQ(X-REQUEST-ID)%" - - key: "http.request.headers.size" - value: - string_value: "%REQUEST_HEADERS_BYTES%" - - key: "http.request.id" - value: - string_value: "%STREAM_ID%" - - key: "http.request.method" - value: - string_value: "%REQ(:METHOD)%" - - key: "http.request.start_time" - value: - string_value: "%START_TIME%" - - key: "http.response.body.size" - value: - string_value: "%BYTES_SENT%" - - key: "http.response.headers.size" - value: - string_value: "%RESPONSE_HEADERS_BYTES%" - - key: "http.response.status_code" - value: - string_value: "%RESPONSE_CODE%" - - key: "http.total_duration_ms" - value: - string_value: "%DURATION%" - key: "server.address" value: string_value: "%DOWNSTREAM_LOCAL_ADDRESS%" @@ -157,7 +118,6 @@ static_resources: - key: "url.template" value: string_value: "%ROUTE_NAME%" - clusters: - name: opentelemetry_collector_grpc type: STRICT_DNS From 5cf5dca9bd73c0623488367079d379a23c71bb5a Mon Sep 17 00:00:00 2001 From: Mikko Viitanen Date: Tue, 21 Jan 2025 09:51:31 +0200 Subject: [PATCH 2/2] add changelog --- CHANGELOG.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 46443701a0..d6f9ce312d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -74,6 +74,8 @@ the release. ([#1910](https://github.com/open-telemetry/opentelemetry-demo/pull/1910)) * [flagd-ui] fixed eslint ignore comment with useCallback ([#1923](https://github.com/open-telemetry/opentelemetry-demo/pull/1923)) +* [frontend-proxy] fix envoy access logs + ([#1930](https://github.com/open-telemetry/opentelemetry-demo/pull/1930)) ## 1.12.0