23 May 2016 05:56 AM
There has been a BT created which is filtering on a Web Request where it is needed to only pull in the data based on the full URL since they can be executed on different hosts. When using the full URL, there is no data.
Solved! Go to Solution.
23 May 2016 05:57 AM
I think the confusing part is that client-side web requests (e.g. a call of get URLConnection.getInputStream) are handled in a different way as server-side web requests (e.g. a call of Servlet.doPost):
For a client-side web request the complete URI is tracked as a whole string (e.g. https://bankpayments.serv.dteco.com/QueryAccts). For a server-side web request we only track path and query of the URI (e.g. /paymentsAdapter/makePayment). To be more precise, in case of Java Servlets it's the return value of the following method:http://docs.oracle.com/javaee/6/api/javax/servlet/http/HttpServletRequest.html#getRequestURI().You can see the difference in the "Argument" column of the PurePath tree - every client-side web requests shows a complete URI , while the first (server-side) web request shows only the path + query part.
To define a measure that matches path/query and host name, please do the following:
1. Adapt the "Servlet" sensor properties to capture the HTTP Host header
2. Use a "Web Request - Header Value" measure as filter measure in your BT
10 Oct 2016 10:28 AM
Servlets is for Java applications. My customer has the same need but we run mostly .NET
Can I instead configure the ASP.NET sensor pack and add the same there? i.e. source = Request Header, and Attribute = Host.
Thank you
10 Oct 2016 10:41 AM
Hi Steve,
You can certainly try to do so.
If you can't get any results after configuring the .NET agent, please open a ticket and provide us with the session file then we will work from there.
10 Oct 2016 10:55 AM
Thank you!
23 May 2016 06:15 AM
You can check this link to have more info about where to find the Servlet properties.
https://community.dynatrace.com/community/display/DOCDT63/Servlet+Sensor