DX Application Performance Management

Expand all | Collapse all

.NET HTTP Web Request Tracing

Jump to Best Answer
  • 1.  .NET HTTP Web Request Tracing

    Posted 08-10-2016 03:13 AM

    Hi ,

     

    Is .NET http web request traced by .net OOB ? I have a .NET applications sending such a request a Java application. Its a servlet request that goes to Java application ? I can see the traces on Java side as well as .NET side (partial traces on .NET) but unable to correlate.

     

    In webservices.pbd , I see  the below .

    #Http Client Side Correlation configuration-->

     

    SetFlag: ClientCorrelationTracing

     

    What does ClientCorrelationTracing does?

     

    Geethu



  • 2.  Re: .NET HTTP Web Request Tracing

    Posted 08-10-2016 11:12 AM

    ClientCorrelationTracing is for the http client.  The HTTP headers will be populated with correlation data on the outgoing http request.



  • 3.  Re: .NET HTTP Web Request Tracing

    Posted 08-11-2016 03:20 AM

    Hi Matt ,

     

    How is it different from other http requests from .NET. OOB this tracing is turned off.

     

    Geethu



  • 4.  Re: .NET HTTP Web Request Tracing

    Posted 08-10-2016 11:15 AM

    Hi Geethu:

         Did Matt's explanation help answer your question? Or do you have any followup questions?

    Thanks

    Hal German



  • 5.  Re: .NET HTTP Web Request Tracing

    Posted 08-11-2016 05:10 AM

    i am stuck at a transaction trace , and unable to correlate to a process running in another jvm.

    The  'view called methods' show as attached. Is this supported?New Bitmap Image (2).bmp



  • 6.  Re: .NET HTTP Web Request Tracing
    Best Answer

    Posted 08-11-2016 12:33 PM

    Hi Geethu,

     

    Talking internally to our guys, tracing from .NET app to Java app depends on how the .NET app calls the Java app.  Can you shed some light on how this is done?

     

    Thanks,
    Matt



  • 7.  Re: .NET HTTP Web Request Tracing

    Posted 08-11-2016 10:43 PM

    Hi Matt ,

     

    Thanks a lot for the response. After going through the code , it shows the same thing as the TT 'View called methods' capture.

    In .NET application , it calls  java servlet and gets a textstream as response.

     

    It uses System.Net.Webrequest and System.Net.Webresponse for sending and receiving data.

     

    It is something like this :

     

    WebRequest myWebRequest = WebRequest.Create("<java servlet call with url queries>");

    WebResponse myWebResponse = (HTTPWebResponse)myWebRequest.GetResponse();

    Stream ReceiveStream = myWebResponse.GetResponseStream();

    Geethu



  • 8.  Re: .NET HTTP Web Request Tracing

    Posted 08-12-2016 08:35 AM

    After talking internally, I found we support it this way.

     

    .NET->SOAP WebServices->Java communications

    Actually we do currently instrument the .NET System.Net.HttpWebRequest class, from webservices.pbd:

     

    #Http Client Side Correlation configuration-->

     

    SetFlag: ClientCorrelationTracing

    #TurnOn: ClientCorrelationTracing

     

    IdentifyInheritedAs: [System]System.Net.HttpWebRequest ClientCorrelationTracing

    IdentifyClassAs: [System]System.Net.HttpWebRequest ClientCorrelationTracing

    SetTracerClassMapping: HttpClientCorrelationTracer

    com.wily.introscope.agent.extensions.webservices.trace.DotnetHttpClientCorrelationTracer

    com.wily.introscope.probebuilder.validate.ResourceNameValidator

    TraceOneMethodIfFlagged: ClientCorrelationTracing GetRequestStream HttpClientCorrelationTracer

    "HttpClientCorrelationTracer"

     

    However it doesn't seem to be turned on by default, so it will have to be enabled before it will work.  Check if its enabled in your webservices pbd file and if not, then enable it and restart the agent.



  • 9.  Re: .NET HTTP Web Request Tracing

    Posted 08-12-2016 09:13 AM

    Hi Geethu:

         In talking with Matt, This question is answered is far as it can be in a community thread. Please open a case if you wish to pursue further.

     

    Thanks

    Hal German



  • 10.  Re: .NET HTTP Web Request Tracing

    Posted 08-15-2016 01:39 AM

    Hi guys,

     

    Just FYI Geethu has actually submitted a Support Case 00473021. I've provided the same suggestion as Matt's on 9/08 which was to enable the Http Server/Client Side Correlation tracing in the webservices.pbd. Geethu had tried the same but it didn't help. I'll help her pursue further via the support case.

     

    Thanks,

    Aryne