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

Control over JS agent update per application

suresh230591
Mentor

Hi,

Is there way to control the update of JS agent per application? We multiple application (Web and Mobile) with manual JS injection enable. We are using JavaScript tag as insertion method. Async code snippet is avoided as it sometime do not instrument all the requests.


Every time cluster is updated, agent load the new JS in the app code. However, the configured URL is older version. Due to this we can see double JS injection happening. I know dynatrace handle this smoothly but still load time of extra 300ms is still noticeable.To overcome this we have to update the JS agent with latest version.


  1. My question is why JS agent is loading the latest version itself. It seems we don't have any control over it.
  2. Auto Update to newer version does not remove the older version, At the end we have to update it manually in the application HTML code so what is the point updating it automatically.
  3. Can we control this update per application? I don't want JS code to be updated every month. I want this to update whenever I want (at least once in 3 month)


Thanks

Suresh


1 REPLY 1

Julius_Loman
DynaMight Guru
DynaMight Guru

You can disable JS auto-update function in Settings -> Preferences -> Oneagent updates.
It's a separate setting for Oneagents and for JavaScript library.

With the default settings the RUM JS library gets updated at least every month when new major cluster version is deployed. You override this setting and do manual updates, but those updates apply for each application within the environment. You cannot have different versions of the JavaScript library set in one tenant except when the injection is done manually. You can only set the version to be used in your environment. The change happens dynamically, within seconds across your whole environment.

Regarding the auto-update and manual injection - I do not know your setup, but I guess you are using manual instrumentation and automatic instrumentation for your apps at the same time. Depending on your configuration you should either use automatic injection or do the manual injection in your build and disable automatic injection at the process level. An automatic injection is preferred and you can specify rules for the pages where the injection should not happen.

Double RUM JS injection should definitely not happen at all in any environment.


TEMPEST a.s., Slovakia, Dynatrace Master Partner