-
Notifications
You must be signed in to change notification settings - Fork 4.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
request_id: Add option to always set request id in response #10808
request_id: Add option to always set request id in response #10808
Conversation
Signed-off-by: Ruslan Nigmatullin <elessar@dropbox.com>
This is a followup for one of the discussion branches in #10429. |
Signed-off-by: Ruslan Nigmatullin <elessar@dropbox.com>
clang-tidy looks like false positive:
Coverage looks like flake:
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
API looks good, just some comment nits.
@@ -433,6 +433,11 @@ message HttpConnectionManager { | |||
// is the current Envoy behaviour. This defaults to false. | |||
bool preserve_external_request_id = 32; | |||
|
|||
// If set, Envoy will always set :ref:`x-request-id <config_http_conn_man_headers_x-request-id>` header in response. | |||
// If this is false or not set, the header is returned in responses only in case of forced tracing. | |||
// This defaults to false. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No need to specify a default for proto3 scalars, this is implied.
@@ -433,6 +433,11 @@ message HttpConnectionManager { | |||
// is the current Envoy behaviour. This defaults to false. | |||
bool preserve_external_request_id = 32; | |||
|
|||
// If set, Envoy will always set :ref:`x-request-id <config_http_conn_man_headers_x-request-id>` header in response. | |||
// If this is false or not set, the header is returned in responses only in case of forced tracing. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you make "forced tracing" a bit clearer for the reader?
I'm not sure what happened with circlici, it tells about compilation errors in a code which does not exist for lines which are not there in the last version of pr. |
…request-id-in-response Signed-off-by: Ruslan Nigmatullin <elessar@dropbox.com>
…request-id-in-response Signed-off-by: Ruslan Nigmatullin <elessar@dropbox.com>
#10860 should fix your clang-tidy error |
…request-id-in-response Signed-off-by: Ruslan Nigmatullin <elessar@dropbox.com>
@yanavlasov clang-tidy is still broken:
|
Merge current master. You don't have the fix. /wait |
…request-id-in-response Signed-off-by: Ruslan Nigmatullin <elessar@dropbox.com>
Oh, merged. Misread the comment. |
…request-id-in-response Signed-off-by: Ruslan Nigmatullin <elessar@dropbox.com>
…request-id-in-response Signed-off-by: Ruslan Nigmatullin <elessar@dropbox.com>
@htuch @mattklein123 All tests did pass, PTAL |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks!
…xy#10808) Signed-off-by: Ruslan Nigmatullin <elessar@dropbox.com> Signed-off-by: pengg <pengg@google.com>
Signed-off-by: Spencer Lewis <slewis@squareup.com> * master: (46 commits) allow specifying the API version of bootstrap from the command line (envoyproxy#10803) config: adding connect matcher (unused) (envoyproxy#10894) Add missing dependency on `assert.h` (envoyproxy#10918) Lower heap and disk space used by kafka tests (envoyproxy#10915) [tools] handle commits merged without PR in deprecated script (envoyproxy#10723) tools: including working tree in modified_since_last_github_commit.sh diff. (envoyproxy#10911) rocketmq_proxy: implement rocketmq proxy [docs] PR template to include commit message (envoyproxy#10900) docs: breaking long word to stop content overflow. (envoyproxy#10880) Delete legacy connection pool code. (envoyproxy#10881) wasm: clarify how configuration is passed (envoyproxy#10782) issue template: clarify security/crash reporting (envoyproxy#10885) api/faq: add entry on incremental xDS. (envoyproxy#10876) router: retry overloaded requests (envoyproxy#10847) Remove inclusion of pthread.h, not needed for linux compilation (envoyproxy#10895) request_id: Add option to always set request id in response (envoyproxy#10808) xray: Use correct types for segment document output (envoyproxy#10834) router: fixing a watermark bug for streaming retries (envoyproxy#10866) http: auditing Path() calls for safety with Pathless CONNECT (envoyproxy#10851) Remove hardcoded type urls Part.2 (envoyproxy#10848) ...
Description: Add configuration option to return
x-request-id
in all cases, even if tracing is not forced.Risk Level: LOW (disabled by default)
Testing: unit tests
Docs Changes: proto documentation
Release Notes: updated
Fixes #10807