-
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
Send request logs from activator. #3927
Send request logs from activator. #3927
Conversation
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: mdemirhan 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 |
I moved request_log.go from pkg/queue to pkg/http - I don't know why it doesn't show as renamed. The file has two additions to it: getTemplate and SetTemplate funcs. |
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.
/lint
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.
@vagababov: 2 warnings.
In response to this:
/lint
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.
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 we move the file rather than delete and add? This will preserve history as well.
@vagababov I tried doing that but for some reason, it keeps adding and removing, rather than moving. |
/lint |
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.
@mdemirhan: 0 warnings.
In response to this:
/lint
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.
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.
couple drive-by comments, need to take a real look :)
// and effectively disable request logs. | ||
if templateStr != "" { | ||
// Make sure that the template ends with a newline. Otherwise, | ||
// logging backends will not be able to parse entries separately. |
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.
Should we check this after applying the template? I bet it would be more reliable?
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 sure if I understand - if we check this after we apply, compiled template won't have the newline and will not work.
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 see, because it executes it directly to a writer...
Moves in git are heuristic based. If you make enough edits, it stops showing up that way. You'll also get strange "moves" when you add / remove similar enough files. |
# Conflicts: # cmd/activator/main.go
# Conflicts: # cmd/activator/main.go # cmd/queue/main.go
The following is the coverage report on pkg/.
|
/lgtm |
Fixes #3781
I moved request_log.go from pkg/queue to pkg/http - I don't know why it doesn't show as renamed. The file has two additions to it: getTemplate and SetTemplate funcs.