-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Add requestLogHandler to user container as well as health check #12229
Conversation
Codecov Report
@@ Coverage Diff @@
## main #12229 +/- ##
==========================================
- Coverage 87.32% 87.30% -0.02%
==========================================
Files 195 195
Lines 9569 9571 +2
==========================================
Hits 8356 8356
- Misses 934 936 +2
Partials 279 279
Continue to review full report at Codecov.
|
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.
do we know why the e2e test isn't catching this? It'd be great to fix the coverage there
/lgtm
/approve
/hold in case you want to move this down in to the existing if block
@@ -311,9 +311,14 @@ func buildServer(ctx context.Context, env config, drainer *pkghandler.Drainer, p | |||
if tracingEnabled { | |||
composedHandler = tracing.HTTPSpanMiddleware(composedHandler) | |||
} | |||
if env.ServingEnableRequestLog { | |||
composedHandler = requestLogHandler(logger, composedHandler, env) |
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.
I'd be tempted to move this down in to the other if env.ServingEnableRequestLog block since it's only 3 lines down from here. I'm OK to leave it here if you disagree, though.
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.
my point was to keep each handler in its own block of code
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.
👍 fine with me, I don't feel super strongly
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: julz, nader-ziada The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
/unhold |
follow up to #12033 12033
https://github.com/knative/serving/pull/12033/files#r743741076
/cc @dprotaso