-
Notifications
You must be signed in to change notification settings - Fork 5.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added optional X-Request-Id to RemoteIpFilter
- Loading branch information
Showing
2 changed files
with
68 additions
and
0 deletions.
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
5f24286
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.
One thing I noticed is that one cannot access this ID at all via {{AccessLogValve}}. Maybe we should extend it as well?
5f24286
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.
@michael-o Yeah, I was thinking the same. Maybe extract XForwardedRequest so that it's not an inner class of the RemoteIpFilter and then we can use it for both the Filter and the Valve.
It's weird but it was difficult for me to find your message. I remembered seeing an email notification so I looked for it. The PR is now at #758 so it would be easier to communicate in the PR thread rather than here.