In the majority of RUM scenarios, at least one additional request for monitoring code is issued by the browser:
jsInlineScript
) include monitoring code as an external resource, which is requested separately by the browser.The default URL of the requested monitoring code depends on the injection method used for your application.
jsTagComplete
), the filename ends with _complete.js
and contains an application identifier (for example, 7cab1abeacdfe1_complete.js
). For all other formats, it starts with ruxitagent_
and contains information about the active code modules and monitoring code version (for example, ruxitagent_ICA7NQVfqrtux_10307250124095659.js
). The filename of the Session Replay monitoring code starts with ruxitagent_
(for example, ruxitagent_D_10307250124095659.js
) for all tag formats.ruxitagentjs_
and contains information about the active code modules and monitoring code version (for example, /ruxitagentjs_ICA7NQVfqrtux_10307250124095659.js
or /myapplication/ruxitagentjs_ICA7NQVfqrtux_10307250124095659.js
).ruxitagentjs_
. The only exception here is the tag format JavaScript tag (jsTagComplete
), where the RUM monitoring code is requested from the CDN and the filename ends with _complete.js
. The Session Replay monitoring code is requested from your web or application server and has a filename starting with ruxitagentjs_
for all tag formats.While the monitoring code source for agentless cannot be configured, it is possible to do so for auto-injected applications. You usually don't need to do this, but there are certain scenarios where you might need to use an alternative configuration. For example:
Depending on your infrastructure and its configuration, it's possible that requests for monitoring code can't pass with their automatically chosen URL path and thus can't be handled by OneAgent. To solve this, you can change the part of the URL that comes before the ruxitagentjs_
prefix.
To modify the RUM monitoring code URL path for an auto-injected application
Go to Web.
Select the application that you want to configure.
In the upper-right corner of the application overview page, select More (…) > Edit.
From the application settings, select Injection > Automatic injection.
In the Real User Monitoring code source dropdown list, select OneAgent.
In Specify path for RUM monitoring code, enter the relative monitoring code URL path.
For example, if the monitoring code for your application is currently requested from /ruxitagentjs_ICA7NQVfqrtux_10307250124095659.js
and you enter /custompath
, it will be requested from /custompath/ruxitagentjs_ICA7NQVfqrtux_10307250124095659.js
. You can't eliminate the ruxitagentjs_ICA7NQVfqrtux_10307250124095659.js
part, which is necessary for the identification of the request as a monitoring code request.
This configuration is not only effective for automatic injection, but also for manual insertion for pages of an auto-injected application. The only exception is the _complete.js
request for the JavaScript tag format, which will still go to the Dynatrace CDN.
Note that all connected ActiveGates must be on ActiveGate version 1.310+ for at least 30 days before this feature becomes available.
If you want the monitoring code for an auto-injected application to be requested from the Dynatrace CDN instead of OneAgent, follow the steps below.
This configuration is effective for both automatic injection and manual insertion for pages of an auto-injected application. Using it, filenames previously starting with ruxitagentjs_
will start with ruxitagent_
instead.