router: add upstream access log option on upstream stream (#26515)

Commit Message:
Additional Description: Follow up to #26155, enabling a similar feature for upstream access logs - record an access log on upstream connection established, if requested.
Risk Level: Low
Testing: Unit tests, integration tests
Docs Changes: router API
Release Notes: none
Platform Specific Features: none

Signed-off-by: Ohad Vano <ohadvano@gmail.com>
Signed-off-by: ohadvano <49730675+ohadvano@users.noreply.github.com>

Mirrored from https://github.com/envoyproxy/envoy @ 49a2fc0e4dbfd608737d06ab0a9b94ca4fc73104
pull/626/head
data-plane-api(Azure Pipelines) 2 years ago
parent d5b023a95e
commit c03c6b8e89
  1. 14
      envoy/extensions/filters/http/router/v3/router.proto

@ -21,11 +21,20 @@ option (udpa.annotations.file_status).package_version_status = ACTIVE;
// Router :ref:`configuration overview <config_http_filters_router>`.
// [#extension: envoy.filters.http.router]
// [#next-free-field: 9]
// [#next-free-field: 10]
message Router {
option (udpa.annotations.versioning).previous_message_type =
"envoy.config.filter.http.router.v2.Router";
message UpstreamAccessLogOptions {
// If set to true, an upstream access log will be recorded when an upstream stream is
// associated to an http request. Note: Each HTTP request received for an already established
// connection will result in an upstream access log record. This includes, for example,
// consecutive HTTP requests over the same connection or a request that is retried.
// In case a retry is applied, an upstream access log will be recorded for each retry.
bool flush_upstream_log_on_upstream_stream = 1;
}
// Whether the router generates dynamic cluster statistics. Defaults to
// true. Can be disabled in high performance scenarios.
google.protobuf.BoolValue dynamic_stats = 1;
@ -42,6 +51,9 @@ message Router {
// requests may be made for each downstream (inbound) request.
repeated config.accesslog.v3.AccessLog upstream_log = 3;
// Additional upstream access log options.
UpstreamAccessLogOptions upstream_log_options = 9;
// Do not add any additional ``x-envoy-`` headers to requests or responses. This
// only affects the :ref:`router filter generated x-envoy- headers
// <config_http_filters_router_headers_set>`, other Envoy filters and the HTTP

Loading…
Cancel
Save