envoyproxy / envoyproxy/java-control-plane

UuidRequestIdConfig Builder

Đang mở
#185 3 bình luận 0 reaction 0 người được giao Xem trên GitHub
Ngôn ngữ chính
Java
Star
312
Fork
149
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Mô tả

We need to be able to set the configuration `pack_trace_reason` of [UuidRequestIdConfig](https://www.envoyproxy.io/docs/envoy/latest/api-v3/extensions/request_id/uuid/v3/uuid.proto) and we didn't find the specific builder.

we try to do this:

```
HttpConnectionManager.Builder builder = HttpConnectionManager.newBuilder();

builder.setRequestIdExtension(RequestIDExtension.newBuilder()
.setTypedConfig(Any.pack(TypedStruct.newBuilder()
.setTypeUrl("type.googleapis.com/envoy.extensions.request_id.uuid.v3.UuidRequestIdConfig")
.setValue(Struct.newBuilder()
.putFields("pack_trace_reason", Value.newBuilder()
.setBoolValue(false)
.build())
.build())
.build())));
```

but this create this configuration in envoy:

```
"request_id_extension": {
"typed_config": {
"@type": "type.googleapis.com/udpa.type.v1.TypedStruct",
"type_url": "type.googleapis.com/envoy.extensions.request_id.uuid.v3.UuidRequestIdConfig",
"value": {
"pack_trace_reason": false
}
}
}
```

With this error:

**Didn't find a registered implementation for type: 'udpa.type.v1.TypedStruct'**

Sorry for the very basic question, but what would be the correct way to configure [UuidRequestIdConfig](https://www.envoyproxy.io/docs/envoy/latest/api-v3/extensions/request_id/uuid/v3/uuid.proto) without having a builder?

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Đánh giá

Issue này chưa được đánh giá.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.