-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
Enhances for http access log #9842
Enhances for http access log #9842
Comments
I think these are definitely reasonable changes to make. Recording the actual request/response body length when a Regarding the |
I completely agree regarding the |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed in 14 days if no further activity occurs. Thank you for your contributions. |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed in 14 days if no further activity occurs. Thank you for your contributions. |
What problem are you trying to solve?
I have an issue with Access Log regarding those fields:
X-Forwarded-For
header - when a Load Balancer involve, it would be the same address for all requests.How should the problem be solved?
The fix should enhance the http-access-log which implemented in this file:
https://github.com/linkerd/linkerd2-proxy/blob/main/linkerd/http-access-log/src/lib.rs#L121
Content-Length
header is missing, fallback to actual input stream length (or at least, amount of bytes read from the stream).Content-Length
header is missing, fallback to actual output stream length.Any alternatives you've considered?
As an alternative, instead of changing current fields, new fields can be added:
x_forward_for
header.How would users interact with this feature?
With this feature, system admins and devops can easily track the payload sizes of both request and response, without asking devs to set the
Content-Length
header which is not set by default.System admins and devops can also know where requests came from by checking the client_addr and get the actual IP instead of the load balancer IP.
Would you like to work on this feature?
maybe
The text was updated successfully, but these errors were encountered: