access log: add support for command formatter extensions (#14512)

Signed-off-by: Raul Gutierrez Segales <rgs@pinterest.com>

Mirrored from https://github.com/envoyproxy/envoy @ efe73e84e894de4a1eabb800108279aadf0c3d1e
pull/624/head
data-plane-api(Azure Pipelines) 4 years ago
parent 761aff3f81
commit cca2390051
  1. 8
      envoy/config/core/v3/substitution_format_string.proto
  2. 8
      envoy/config/core/v4alpha/substitution_format_string.proto

@ -3,7 +3,9 @@ syntax = "proto3";
package envoy.config.core.v3;
import "envoy/config/core/v3/base.proto";
import "envoy/config/core/v3/extension.proto";
import "google/protobuf/any.proto";
import "google/protobuf/struct.proto";
import "udpa/annotations/status.proto";
@ -18,7 +20,7 @@ option (udpa.annotations.file_status).package_version_status = ACTIVE;
// Configuration to use multiple :ref:`command operators <config_access_log_command_operators>`
// to generate a new string in either plain text or JSON format.
// [#next-free-field: 6]
// [#next-free-field: 7]
message SubstitutionFormatString {
oneof format {
option (validate.required) = true;
@ -103,4 +105,8 @@ message SubstitutionFormatString {
// content_type: "text/html; charset=UTF-8"
//
string content_type = 4;
// Specifies a collection of Formatter plugins that can be called from the access log configuration.
// See the formatters extensions documentation for details.
repeated TypedExtensionConfig formatters = 6;
}

@ -3,7 +3,9 @@ syntax = "proto3";
package envoy.config.core.v4alpha;
import "envoy/config/core/v4alpha/base.proto";
import "envoy/config/core/v4alpha/extension.proto";
import "google/protobuf/any.proto";
import "google/protobuf/struct.proto";
import "udpa/annotations/status.proto";
@ -19,7 +21,7 @@ option (udpa.annotations.file_status).package_version_status = NEXT_MAJOR_VERSIO
// Configuration to use multiple :ref:`command operators <config_access_log_command_operators>`
// to generate a new string in either plain text or JSON format.
// [#next-free-field: 6]
// [#next-free-field: 7]
message SubstitutionFormatString {
option (udpa.annotations.versioning).previous_message_type =
"envoy.config.core.v3.SubstitutionFormatString";
@ -92,4 +94,8 @@ message SubstitutionFormatString {
// content_type: "text/html; charset=UTF-8"
//
string content_type = 4;
// Specifies a collection of Formatter plugins that can be called from the access log configuration.
// See the formatters extensions documentation for details.
repeated TypedExtensionConfig formatters = 6;
}

Loading…
Cancel
Save