envoyproxy / envoyproxy/java-control-plane
UuidRequestIdConfig Builder
- Lingua principale
- Java
- Stelle
- 312
- Fork
- 149
- Metriche di merge delle PR
- Nessuna PR unita negli ultimi 30g
Descrizione
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?
Guida per i contributori
Apri la guida per i contributori
Direzione di ricerca
Start with the Java builders for HttpConnectionManager, RequestIDExtension, and the UuidRequestIdConfig referenced in the issue, then compare them with the Envoy uuid.proto definition. Reproduce the TypedStruct error from the example and determine the supported configuration path. Done means documenting or exposing a working way to set pack_trace_reason without the registration error.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Valutazione
- Stack tecnologico
- java
- Ambito
- api
- Tipo di issue
- Funzionalità
- Difficoltà
- 3/5
- Tempo stimato
- 1-2 giorni
- Stato di attività
- Ferma
- Chiarezza
- Abbastanza chiara
- Idoneità per principianti
- 35/100