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

How do I create web application detection rule using Target URL (Application uses Javascript API)

Saravanakumar_P
Contributor

Hi Team,

 

I was trying to separate web application from a global application, I logged in to the global web application and click on myapp link - JavaScript API's is getting triggered.

 

I am seeing useraction in Dynatrace(global web application) with below details 

 

XHR action: /path/someportal/action/navigations

 

Target URL: https://www.somedomain.com/path/someportal/action/navigations/#/myapp/reports

 

I have tried to create rule with web application URL contains "navigations/#/myapp" but the traffic is not getting captured in the web application.

 

Could anyone face the similar issue? Is there any RFE planned already to capture Target URL as web application detection rule?

 

2 REPLIES 2

Super
Contributor

Try to use request attribut for solve this issue 

Julius_Loman
DynaMight Legend
DynaMight Legend

Detection rules consider the URL you have in your browser. Simply said, it's only for the load actions. 

In your case, the XHR action will still be an action in the application determined by rules which apply to the Load action of the page where the XHR is performed from. You should give your XHR action a proper name. If you have trouble with the naming - (if you can't write a good naming rule for that action in particular), you can use the DTRUM API to set the name from your JavaScript code.

Certified Dynatrace Master | Alanata a.s., Slovakia, Dynatrace Master Partner

Featured Posts