aws / aws-xray-java-agent

The official AWS X-Ray Auto Instrumentation Agent for Java.
Apache License 2.0
42 stars 18 forks source link

added check for x-forwarded-for header #79

Closed willarmiros closed 3 years ago

willarmiros commented 3 years ago

Issue #, if available:

78

Description of changes: Adds a fallback check for the X-Forwarded-For header to record Client IP. Header data from disco is case-sensitive, so I checked for the lower-case and capitalized versions. I've also opened https://github.com/awslabs/disco/issues/14 in the underlying Disco framework the agent uses, for the more general fix of case-insensitive headers.

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.