mp
10/29/2018, 1:38 PMDeactivated User
10/29/2018, 1:39 PMmp
10/29/2018, 1:41 PMMonitoring
phase says:
Phase for tracing calls, useful for logging, ...anyway, what I'm doing is writing a feature to grab request metadata and put it in a ThreadLocal so that it can be provided to Google Cloud's logging as metadata for each log call (https://cloud.google.com/logging/docs/reference/v2/rest/v2/LogEntry#HttpRequest)
Deactivated User
10/29/2018, 1:42 PMmp
10/29/2018, 1:42 PMFeatures
phase.mp
10/29/2018, 1:45 PMMonitoring
because that seems like the best generic fit as per docs
- Intercept Features
and document that users should apply XForwardedHeaderSupport
first if they want that data to be included in the logging HttpRequest
metadata
- Make a custom phase and insert it after Features
- Make a custom phase and insert it after a user-configured phaseDeactivated User
10/29/2018, 2:13 PMmp
10/29/2018, 2:19 PMXForwardedHeaderSupport
right?Deactivated User
10/29/2018, 2:25 PMmp
10/29/2018, 2:25 PMFeatures
then I guess, and document to put it after XFHS
if the consumer wants that datamp
10/29/2018, 2:25 PMDeactivated User
10/29/2018, 2:26 PMXForwardedHeaderSupport
should be put earlier in the chain, since it contributes to construct the request? Not sure.mp
10/29/2018, 2:27 PMmp
10/29/2018, 2:27 PMmp
10/29/2018, 2:28 PMcall.request.origin
to change its meaning after Monitoring
since presumably your monitoring features care about that...mp
10/29/2018, 2:28 PMDeactivated User
10/29/2018, 2:31 PMMonitoring
phase might require origin
information generated contributed by XForwardedHeaderSupport
- We were discussing if it might have sense to move XForwardedHeaderSupport
eariler in the chain. Like at the Setup
phase.
What do you think?cy
10/29/2018, 2:35 PMDeactivated User
10/29/2018, 2:36 PManyway, what I’m doing is writing a feature to grab request metadata and put it in a ThreadLocal so that it can be provided to Google Cloud’s logging as metadata for each log call (https://cloud.google.com/logging/docs/reference/v2/rest/v2/LogEntry#HttpRequest)
cy
10/29/2018, 2:37 PMDeactivated User
10/29/2018, 2:38 PMAs part of this, it’d be nice to be support `XForwardedHeaderSupport`’s handling of XForwardedFor so it shows the real client IP, not just the load balancer. That feature intercepts thephase.Features
Deactivated User
10/29/2018, 2:38 PMcy
10/29/2018, 2:39 PMDeactivated User
10/29/2018, 2:40 PMcy
10/29/2018, 2:41 PMmp
10/29/2018, 2:42 PMSetup
. Just seems that maybe Monitoring
stuff would want the end user's IP available (as I do in my case)cy
10/29/2018, 2:42 PMmp
10/29/2018, 2:43 PMmp
10/29/2018, 2:43 PMmp
10/29/2018, 2:43 PMmp
10/29/2018, 2:44 PMcy
10/29/2018, 2:44 PMmp
10/29/2018, 2:45 PMXFHS
to have already done that for me for call.request.origin
or if I call some public method, but it does seem like if a user installs XFHS
then they could reasonably expect that stuff in Monitoring
that uses call.request.origin
would see the value that XFHS
has setcy
10/29/2018, 2:45 PMmp
10/29/2018, 2:45 PMasContextElement
)cy
10/29/2018, 2:45 PMorigin
so early?mp
10/29/2018, 2:46 PMmp
10/29/2018, 2:46 PMMonitoring
phase, it seems that that's the phase it should live in, but if I intercept there, I won't get `XFHS`'s origin
.mp
10/29/2018, 2:47 PMrequest.local
instead of request.origin
, I don't think there's a downside to moving XFHS
earlier?cy
10/29/2018, 2:50 PMmp
10/29/2018, 2:52 PMmp
10/29/2018, 2:52 PMcy
10/29/2018, 2:56 PMcy
10/29/2018, 2:56 PMcy
10/29/2018, 2:57 PMmp
10/29/2018, 2:57 PMmp
10/29/2018, 2:59 PMcy
10/29/2018, 2:59 PMmp
10/29/2018, 3:00 PM