GrpcFieldExtraction: Supports extracting fields of type `map<string, string>` in addition to string (#35162)

Commit Message: GrpcFieldExtraction: Supports extracting fields of type
`map<string, string>` in addition to string
Additional Description:
Risk Level: Low
Testing: Unit test
Docs Changes: Inline with the filter API proto.
Release Notes: This change is backward compatible and no behavior change
is expected for existing users.
Platform Specific Features:

---------

Signed-off-by: Xi Wu <xiwuxw@google.com>

Mirrored from https://github.com/envoyproxy/envoy @ 1cd67c5821125a246e2a4f13254f8d6c69068705
main
update-envoy[bot] 6 months ago
parent 0ce3ec23d8
commit 9d2fc69926
  1. 9
      envoy/extensions/filters/http/grpc_field_extraction/v3/config.proto

@ -52,7 +52,9 @@ option (udpa.annotations.file_status).package_version_status = ACTIVE;
//
// Here are config requirements
//
// 1. the target field should be among the following primitive types: `string`, `uint32`, `uint64`, `int32`, `int64`, `sint32`, `sint64`, `fixed32`, `fixed64`, `sfixed32`, `sfixed64`, `float`, `double`.
// 1. the target field should be among the following primitive types: `string`,
// `uint32`, `uint64`, `int32`, `int64`, `sint32`, `sint64`, `fixed32`,
// `fixed64`, `sfixed32`, `sfixed64`, `float`, `double`, `map<string, string>`.
//
// 2. the target field could be repeated.
//
@ -61,9 +63,10 @@ option (udpa.annotations.file_status).package_version_status = ACTIVE;
// Output Format
// -------------
//
// 1. the extracted field names/values will be wrapped in be ``field<StringValue>`` -> ``values<ListValue of StringValue>``, which will be added in the dynamic ``metadata<google.protobuf.Struct>``.
// 1. the extracted field names/values will be wrapped in be ``field<StringValue
// or MapValue>`` -> ``values<ListValue of StringValue or StructValue>``, which will be added in the dynamic ``metadata<google.protobuf.Struct>``.
//
// 2. if the field value is empty, a empty ``<ListValue>`` will be set.
// 2. if the field value is empty, an empty ``<ListValue>`` will be set.
//
// Performance
// -----------

Loading…
Cancel
Save