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.
In the IgnoreSpansForRoutes option or function, you can pass array of string and regex.