cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
toufic_chamandi
Dynatrace Guide
Dynatrace Guide

Problem

Your web Application traffic is not appearing in defined Dynatrace application or is not being captured. The best way to troubleshoot this is to try to narrow down where the problem is coming from, because it could be an injection issue, a detection issue, going to a different application.....

 

Troubleshooting steps

Start ruling out the cause by following these steps:

The first step would be to go to the website and open the dev-tools and check the network tab, see if you're able to spot the Dynatrace RUM JavaScript request:

toufic_chamandi_1-1734335110627.png

The RUM JavaScript may look different, i.e. '2f34badcac72bfa2_complete.js' or be injected inline directly in HTML starting with '<script type="text/javascript" data-dtconfig='.

That's why, the ultimate way to check for the injection, is to run 'dT_.gdi()' in the console of the browser, if an injection is successful you would get something similar to this:

toufic_chamandi_10-1732778630611.png

If the console returns a red output like the following then there is no injection on the website:

toufic_chamandi_11-1732778656492.png

 

When there is an injection:

This means that the traffic is being captured but is being sent to a different application (we're assuming that the beacon requests 'rb_' or 'bf_' are being sent correctly) in Dynatrace. To find out which application you can do multiple things here:

  • Run 'dT_.cfgO()in the console. This will return multiple pieces of information one of which is the application ID that is handling the injection. This ID is present in the URL of the application page in Dynatrace:

  • You can go to the service that handles the frontend of the main page, and check for the Distributed Trace / PurePath there.
  • The third method is better because it will help you solve the problem faster (but here we're also assuming that correlation is working, so the User Actions are linked to the Distributed Traces), by checking your session in Dynatrace you're able to jump to the traces captured in Dynatrace. And from those traces you're able to see what the full URL looks like when it was captured:

 

toufic_chamandi_12-1732778748898.png

 

  • Next check Settings -> Web and mobile monitoring -> Host determination. You could have used another header to use as a HOST for the trace.
  • Now you can build the full URL its the (Top header from the host determination + URI), for example here the full URL here would be: localhost:8079/
 

toufic_chamandi_13-1732779115626.png

 

  • Next check the application detection rule and it states why this request was assigned to the application, in this case it states that the domain matches localhost.

toufic_chamandi_14-1732779425598.png

 

You will either have to fix the detection rule or fix whatever is changing his URL (Dynatrace does not manipulate the URL we only capture it).

When there is no injection:

  • Open the dev-tools, enable dtHealthCheck and load the website.

  • Check the document request of the page, see if you find 'x-dthealthcheck'  in the response headers in the Headers part of the request, if you don't see it, skip to the next point. You should see something similar to this:

toufic_chamandi_16-1732779632788.png

  • Usually dtHealthCheck provides us with the information needed, but you might come across a situation where the headers don't show up and this is due to 2 possible reasons:

    • Either the customer didn't disable cache while recording the HAR, let him toggle 'disable cache' and test it in an incognito window:

      toufic_chamandi_15-1732779579300.png
    • The application is served by a CDN which doesnt have oneagent installed in this case automatic injection is not possible.

  • In this case you need to ask the customer to check it on his side.

 

What's Next 

If this article did not help, please open a support ticket, mention that this article was used and provide the following in the ticket:

Version history
Last update:
‎19 Dec 2024 10:53 AM
Updated by: