Skip to content

log: set route name for direct response#13683

Merged
mattklein123 merged 1 commit intoenvoyproxy:masterfrom
kyessenov:fix_direct_response_route_name
Oct 28, 2020
Merged

log: set route name for direct response#13683
mattklein123 merged 1 commit intoenvoyproxy:masterfrom
kyessenov:fix_direct_response_route_name

Conversation

@kyessenov
Copy link
Copy Markdown
Contributor

@kyessenov kyessenov commented Oct 21, 2020

Signed-off-by: Kuat Yessenov kuat@google.com

Commit Message: set route name in direct response, so it can be used in logging
Additional Description:
Risk Level: low (regression fix)
Testing: integration
Docs Changes: none
Release Notes: none
Fixes: #13157

Signed-off-by: Kuat Yessenov <kuat@google.com>
@kyessenov
Copy link
Copy Markdown
Contributor Author

/retest
Mac CI is load shedding.

@repokitteh-read-only
Copy link
Copy Markdown

Retrying Azure Pipelines.
Cannot retry non-completed check: envoy-presubmit (windows docker), please wait.

🐱

Caused by: a #13683 (comment) was created by @kyessenov.

see: more, trace.

@kyessenov
Copy link
Copy Markdown
Contributor Author

/retest

@repokitteh-read-only
Copy link
Copy Markdown

Retrying Azure Pipelines.
Retried failed jobs in: envoy-presubmit

🐱

Caused by: a #13683 (comment) was created by @kyessenov.

see: more, trace.

Copy link
Copy Markdown
Member

@dio dio left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good. Do you think this is a good opportunity to expand docs on docs/root/intro/arch_overview/http/http_routing.rst. At the Direct responses section that we have full log information when it happens?

// Content-length header is correct.
EXPECT_EQ("0", response->headers().getContentLengthValue());

std::string log = waitForAccessLog(access_log_name_);
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Super nit. const.

@kyessenov
Copy link
Copy Markdown
Contributor Author

@dio I think it's a given that direct response should not be any different than other route actions. I consider this a regression fix.

Copy link
Copy Markdown
Member

@dio dio left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

kyessenov added a commit to istio/envoy that referenced this pull request Oct 28, 2020
Signed-off-by: Kuat Yessenov <kuat@google.com>
istio-testing pushed a commit to istio/envoy that referenced this pull request Oct 28, 2020
Signed-off-by: Kuat Yessenov <kuat@google.com>
@mattklein123 mattklein123 merged commit 02cbd49 into envoyproxy:master Oct 28, 2020
mpuncel added a commit to mpuncel/envoy that referenced this pull request Oct 30, 2020
* master: (83 commits)
  tls: Typesafe tls slots (envoyproxy#13789)
  docs(example): Correct URL for caching example page (envoyproxy#13810)
  [fuzz] Made health check fuzz more efficient (envoyproxy#13747)
  rtds: properly scope rtds stats (envoyproxy#13764)
  http: fixing a bug with IPv6 hosts (envoyproxy#13798)
  connection: Remember transport socket read resumption requests and replay them when re-enabling read. (envoyproxy#13772)
  network: adding some accessors for ALPN work. (envoyproxy#13785)
  docs: added a step about how to handle platform specific extensions (envoyproxy#13759)
  Fix identation in ip transparency code snippet (envoyproxy#13743)
  wasm: enable WAVM's stack unwinding feature (envoyproxy#13792)
  log: set route name for direct response (envoyproxy#13683)
  Use nghttp2 as external dependsncy in protocol_constraints_lib (envoyproxy#13763)
  [Windows] Update windows dev docs (envoyproxy#13741)
  cel: patch thread safety issue (envoyproxy#13739)
  Windows: Fix ssl_socket_test (envoyproxy#13264)
  apple dns: add fake api test suite (envoyproxy#13780)
  overload: scale selected timers in response to load (envoyproxy#13475)
  examples: Add dynamic configuration (control plane) sandbox (envoyproxy#13746)
  Removed exception in getResponseStatus() (envoyproxy#13314)
  network: add timeout for transport connect (envoyproxy#13610)
  ...

Signed-off-by: Michael Puncel <mpuncel@squareup.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

ROUTE_NAME is not captured in access log when direct_response is used

3 participants