05 Oct 2020 09:27 AM
Hello, I have question to you. What are conditions needed to connect purepath between nginx reverse proxy and OneAgent SDK Incoming WebRequest instrumentation? We have nginx that is used as reverse proxy and sends traffic to 0.0.0.0:PORT. I see it as request to unmonitored host. Than I have proper purepaths started from SDK. I catch all headers via SDK, so x-dynatrace is available for agent as well. Should I use
onesdk_incomingwebrequesttracer_set_remote_address
somehow?
Sebastian
Solved! Go to Solution.
05 Oct 2020 09:49 AM
Hi! Please check these two:
Calling onesdk_incomingwebrequesttracer_set_remote_address with the remote socket address you get the request is recommended, but is not related to your problem as it is not used for linking PurePaths.
05 Oct 2020 10:17 AM
05 Oct 2020 10:32 AM
Ok I've make it work, Headers are case sensitive, in my case all headers were Capitilized by framework. I've had to restore them proper names using simple string modification and no purepaths are connected properly 🙂
06 Oct 2020 03:59 PM
Thank you for reporting that, this should not be the case as the matching is intended to be case insensitive. I will report this internally and we will investigate.
06 Oct 2020 04:08 PM
Do you have an example of a header name that was not processed properly? Are you sure it is only capitalization or does your framework give you headers in CGI format (with underscores instead of minus/hyphen)? These would be expected to not work.
07 Oct 2020 02:40 PM
For example, I have header X_DYNATRACE returned by object inside my application. I had to change it to X_Dynatrace. x_dynatrace wasn't working as well.