Related pages: |
Some pages use a very large number of resource files, more than can usefully be monitored. By default, the JavaScript Agent decides which resource files to monitor based on two factors:
Both of these factors can be modified.
To modify the sampling algorithm, use resTiming.sampler
. Possible values are:
To modify the maximum number of resources to be evaluated, use resTiming.maxNum.
For example, to sample based on Top N and to set the max number at 100, you could add the following snippet to your page, before you inject the adrum.js
script.
<head> <script type='text/javascript' charset='UTF-8'> (function (config) { config.resTiming = { sampler: "TopN", maxNum: 100 }; })(window['adrum-config'] || (window['adrum-config'] = {})); </script> <script src='//cdn.appdynamics.com/adrum/adrum-latest.js' type='text/javascript' charset='UTF-8'></script> ... </head> |