Atatus captures all spans in a route change automatically. If there are certain XHR call or domain does not play a role in the route change timing then you can ignore those spans using regex values in either ignoreSpansForRoutes
config option or setIgnoreSpansForRoutes
function.
atatus.config('YOUR_API_KEY', {
ignoreSpansForRoutes: [
'collect',
'googleapis',
'get-calendar-options'
]
}).install();
copy
atatus.setIgnoreSpansForRoutes([
'collect',
'googleapis'
]);
copy
atatus.setIgnoreSpansForRoutes([
/^((?!collect|googleapis).)*$/g
]);
In the IgnoreSpansForRoutes option or function, you can pass array of string and regex.