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

Javascript dtagent location

jcamps
Advisor


Hi all,


how can I specify the location for the Javascript agent to add some additional content between the server name and the application context?


My application serves content in http://xxx.yyy.zzz/uat/app_name


with the default setting the JS in injected in:


http://xxx.yyy.zzz/app_name/dtagent_bdpx_6000500001289.js


but for this application is mandatory to put the content in:


http://xxx.yyy.zzz/uat/app_name/dtagent_bdpx_6000500001289.js (with /uat/ between the server name and the application context)


How can I do that?

6 REPLIES 6

Joe_Hoffman
Dynatrace Champion
Dynatrace Champion

Josep,

Edit your profile -> User Experience

Select your Application tab (if you've not defined application environments you will only have the 'Default' tab.

Scroll down to the Advanced Configuration section and observe the Agent Location text field.

Modifying this field will allow you to specify the /uat/ path characteristics.

Hi Joseph,

I have done that but, as I have explained in my question, adding /uat in the the Agent Location text field this puts the agent in:

  • http://xxx.yyy.zzz/app_name/uat/dtagent.js (with /uat/ after the server name and the application context)

and for my application is mandatory to put the /uat/ between the server name and the application context:

  • http://xxx.yyy.zzz/uat/app_name/dtagent

Regards! Josep Maria

Hello @Josep Maria C.

I am assuming about the Manual + Automatic injection which usually we use for the Mobile Application instrumentation.

e.g. If we retrieve the snippet using the REST API only for the /uat/ and then inject it as the first script into the application page. The API is designed to be used during the build process of a web application and provides vital functionality the agent needs to instrument a website.

https://www.dynatrace.com/support/doc/appmon/administration/system-profile/edit-a-system-profile/system-profile-user-experience/web-app-settings/

Later on we can use the agent path http://xxx.yyy.zzz/uat/app_name/dtagent for the automatic instrumentation.

If the above idea is funny enough then you can forgive me 🙂

Regards,

Babar

Hi Babar,

my customer want to do that without modify the application source code if it's possible (with automatic injection).

Regards,

Hello @Josep Maria C.

Oops !!! This can be a big hindrance in case Dynatrace Support or some other SME comes across with the similar solution.

Regards,

Babar

Hi Babar,

you're rigth, the response from support:

Unfortunately
it is not possible to configure it to have /uem/ between server and
application automatically. In this situation it would be best to use an
explicit path so that the JS is always served from the same location.
eg.
https://xxx.yyy.zzz/uat/appA/ "

Regards, Josep Maria