router: add x-envoy-attempt-count on downstream responses#10325
router: add x-envoy-attempt-count on downstream responses#10325junr03 merged 20 commits intoenvoyproxy:masterfrom junr03:attempt-count
Conversation
Signed-off-by: Jose Nino <jnino@lyft.com>
Signed-off-by: Jose Nino <jnino@lyft.com>
|
I made some decisions about this change that are open for debate:
|
alyssawilk
left a comment
There was a problem hiding this comment.
Cool, it's nice to have better debug info for what's going on in this case!
Signed-off-by: Jose Nino <jnino@lyft.com>
Signed-off-by: Jose Nino <jnino@lyft.com>
Signed-off-by: Jose Nino <jnino@lyft.com>
Signed-off-by: Jose Nino <jnino@lyft.com>
This reverts commit 78186f3. Signed-off-by: Jose Nino <jnino@lyft.com>
Signed-off-by: Jose Nino <jnino@lyft.com>
Signed-off-by: Jose Nino <jnino@lyft.com>
|
@htuch this is ready for another pass (going to leave alyssa out from mentions given she is ooo today). |
alyssawilk
left a comment
There was a problem hiding this comment.
Looking good overall!
Signed-off-by: Jose Nino <jnino@lyft.com>
|
@alyssawilk updated! |
Signed-off-by: Jose Nino <jnino@lyft.com>
Signed-off-by: Jose Nino <jnino@lyft.com>
|
/lgtm api |
| // :ref:`suppress_envoy_headers | ||
| // <envoy_api_field_config.filter.http.router.v2.Router.suppress_envoy_headers>` flag. | ||
| // | ||
| // [#next-major-version: rename to include_attempt_count_in_request.] |
There was a problem hiding this comment.
You can do this now with [(udpa.annotations.field_migrate).rename right? Or is the issue that this will right now change it in v3 and we have to circle back and do it after we stop v2 updates?
There was a problem hiding this comment.
there's a wrinkle with the annotation right now #10325 (comment). I am keeping a note so that when this is fix we can change to use the annotation.
| HEADER_FUNC(Connection) \ | ||
| HEADER_FUNC(ContentLength) \ | ||
| HEADER_FUNC(ContentType) \ | ||
| HEADER_FUNC(EnvoyAttemptCount) \ |
There was a problem hiding this comment.
It makes me happy to see this working properly. :)
There was a problem hiding this comment.
Yeah, this is awesome! Hard/tedious work is now paying off :) thanks for doing this. I took the liberty to narrow some more types in this PR to ensure static checking, really rad.
|
I am going to go ahead an merge this PR, in spite of the macOS failure. The same failure has been seen on master as well https://github.com/envoyproxy/envoy/runs/509585590 cc @danzh2010 |
Description: this PR adds the
x-envoy-attempt-countheader to downstream responses.Risk Level: low, used via new config value that defaults to false.
Testing: updated tests to verify that the header is being set. New unit tests
Docs Changes: updated docs
Release Notes: added.
Signed-off-by: Jose Nino jnino@lyft.com