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.

(function (config) {
  config.resTiming = {
    sampler: "TopN",
    maxNum: 100
  };
})(window['adrum-config'] || (window['adrum-config'] = {}));