Go to All Forums

RUM: need to exclude some ajax polling call

Hi,

We are evaluating Site24x7 RUM monitoring for our SinglePageApplication (SPA). However we have on our pages some ajax polling request (30s) that we need to exclude from monitoring otherwise the average page time is totally false.

Do you plan to have this feature ?

Best,
Ch. Potter
CEO-Vision S.A.S

Like (3) Reply
Replies (1)

Greetings, 

Here's how you can exclude monitoring AJAX calls in your single page application:

In the existing RUM script, kindly include the highlighted lines, below the rumMokey. 

 

<script type="text/javascript">
var rumMOKey='69XXXXXXXXXXXXXXXXXX32X';
var site24x7rumProp ={};
site24x7rumProp.excludedAjaxCalls=["ajax/poll","http-bind/"];
(function(){
if(window.performance && window.performance.timing && window.performance.navigation) {
var site24x7_rum_beacon=document.createElement('script');
site24x7_rum_beacon.async=true;
site24x7_rum_beacon.setAttribute('src','//static.site24x7rum.eu/beacon/site24x7rum-min.js?appKey='+rumMOKey);
document.getElementsByTagName('head')[0].appendChild(site24x7_rum_beacon);
}
})(window)
</script>

Once the changes are made, Site24x7 RUM will not monitor your AJAX calls. 

In case of any questions or concerns, kindly comment below and we will get back to you. 

Regards, 

Ranjani.P.S

 

Like (0) Reply

Was this post helpful?