AppDynamics switched from Semantic Versioning to Calendar Versioning starting in February 2020 for some agents and March 2020 for the entire product suite.


    Skip to end of metadata
    Go to start of metadata

    Related pages:

    Your Rating:
    Results:
    1 Star2 Star3 Star4 Star5 Star
    20 rates

    This page covers how to upgrade the JavaScript AGent version. Upgrading to the latest version of the JavaScript Agent will allow you to use the latest features and get the latest bug fixes.

    The following sections will discuss possible compatibility issues, show you a new way to include the JavaScript Agent, and provide you with manual injection code examples for the different JavaScript Agent hosting options

    Compatibility Issues

    For on-prem deployments, your JavaScript Agent version should be equal or less than your EUM Server version. For example, if you have deployed the EUM Server 20.3.0, the latest version of the JavaScript Agent you can use is 20.3.0. Therefore, you are highly recommended to upgrade your EUM Server to the latest version, so you can take advantage of the latest JavaScript Agent features. 

    Injection Code Changes

    If the URL to the server hosting your JavaScript Agent is the same for both HTTP and HTTPS, you should no longer use document.write to inject the <script> tag. Instead, just hardcode the <script> tag with the following syntax:

    <script src="//cdn.appdynamics.com/adrum/adrum.js"></script>

    Injection Code for Different Hosting Options

    The injection code will vary slightly depending on your deployment (SaaS/on-premises). The following provides you with code snippets for each type of deployment. Be sure to place the code snippets below right after the <head> tag.

    Replace the string <EUM_APP_KEY> in the code below with your own EUM app key.

    <script charset='UTF-8'>
    window['adrum-start-time'] = new Date().getTime();
    (function(config){
        config.appKey = '<EUM_APP_KEY>';
        config.adrumExtUrlHttp = 'http://cdn.appdynamics.com';
        config.adrumExtUrlHttps = 'https://cdn.appdynamics.com';
        config.beaconUrlHttp = 'http://eum-col.appdynamics.com';
        config.beaconUrlHttps = 'https://eum-col.appdynamics.com';
        config.xd = {enable : false};
    })(window['adrum-config'] || (window['adrum-config'] = {}));
    <script src='//cdn.appdynamics.com/adrum/adrum-latest.js'></script>

    In the code snippet below, replace the string <EUM_APP_KEY> with your own EUM app key and <your-cdn.com> with the URL to your server hosting the JavaScript Agent. 

    <script charset='UTF-8'>
    window['adrum-start-time'] = new Date().getTime();
    (function(config){
        config.appKey = '<EUM_APP_KEY>';
        config.adrumExtUrlHttp = 'http://<your-cdn.com>';
        config.adrumExtUrlHttps = 'https://<your-cdn.com>';
        config.beaconUrlHttp = 'http://eum-col.appdynamics.com';
        config.beaconUrlHttps = 'http://eum-col.appdynamics.com';
        config.xd = {enable : false};
    })(window['adrum-config'] || (window['adrum-config'] = {}));
    </script>
    <script src='//<your-cdn.com>/adrum/adrum.js'></script>

    In the code snippet below, replace the string <EUM_APP_KEY> with your own EUM app key and <your-cdn.com> with the URL to where you're hosting the JavaScript Agent. 

    <script charset='UTF-8'>
    window['adrum-start-time'] = new Date().getTime();
    (function(config){
        config.appKey = '<EUM_APP_KEY>';
        config.adrumExtUrlHttp = 'http://cdn.appdynamics.com';
        config.adrumExtUrlHttps = 'https://cdn.appdynamics.com';
        config.beaconUrlHttp = 'http://eum-col.appdynamics.com';
        config.beaconUrlHttps = 'https://eum-col.appdynamics.com';
        config.xd = {enable : false};
    })(window['adrum-config'] || (window['adrum-config'] = {}));
    </script>
    <script src='//<your-cdn.com>/adrum/adrum.js'></script>

    • No labels