By default, the JavaScript Agent reports Ajax requests made with XMLHttpRequest object (XHR) and the Fetch API.

You should only consider disabling monitoring support for the Fetch API for the following use cases:

  • You just started using the JavaScript Agent v4.5.6 and start to see JavaScript errors caused by Ajax requests.
  • Your browser app uses one of the following libraries:

To disable monitoring for the Fetch API, you set config.fetch to false as shown below.

<script type='text/javascript' charset='UTF-8'>    
    (function(config){
       config.fetch = false; 
    })(window['adrum-config'] || (window['adrum-config'] = {}));
</script>
<script src='//cdn.appdynamics.com/adrum/adrum-latest.js' type='text/javascript' charset='UTF-8'></script>
JS

To disable monitoring for the Fetch API for single-page applications:

<script type='text/javascript' charset='UTF-8'>    
    (function(config){
       config.fetch = false; 
       config.spa = {
            "spa2": true
        };
    })(window['adrum-config'] || (window['adrum-config'] = {}));
</script>
<script src='//cdn.appdynamics.com/adrum/adrum-latest.js' type='text/javascript' charset='UTF-8'></script>
JS