-
Notifications
You must be signed in to change notification settings - Fork 4.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(tracing): add http.client_ip attribute (#10723)
* fix(tracing): use get_forwarded_ip instead of get_ip for peer IP As a developer troubleshooting requests using trace data, I expect my access logs to be consistent with my traces. The access logs currently record the forwarded_ip, which tells me what my client's true ip is (assuming proper setup of trusted IPs etc). This change switches the span attribute for peer ip to use forwarded_ip as well. * fix(tracing): add get_forwarded_ip as separate attribute * fix(tracing): add new attribute to test case * feat(tracing): add changelog entry
- Loading branch information
Showing
3 changed files
with
5 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
57b9ae6
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.
Bazel Build
Docker image available
kong/kong:57b9ae669a97af128825538c109c2d71a4264618
Artifacts available https://github.com/Kong/kong/actions/runs/4829826003