envoyproxy / envoyproxy/java-control-plane
UuidRequestIdConfig Builder
- 主要语言
- Java
- 星标
- 312
- 派生
- 149
- PR 合并指标
- 30 天内没有已合并 PR
描述
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?
贡献指南
调研方向
先从 issue 中引用的 HttpConnectionManager、RequestIDExtension 和 UuidRequestIdConfig Java builder 入手,然后将它们与 Envoy 的 uuid.proto 定义进行比较。复现示例中的 TypedStruct 错误,并确定受支持的配置路径。完成的标准是记录或提供一种无需注册错误即可设置 pack_trace_reason 的可行方式。
由索引模型根据 Issue 内容生成。
评估
- 技术栈
- java
- 领域
- api
- Issue 类型
- 功能
- 难度
- 3/5
- 预计耗时
- 1-2 天
- 活跃度
- 停滞
- 描述清晰度
- 基本清楚
- 新手友好度
- 35/100