Fully backport support for scoped tracing
Apply scoped tracing on XHR Spy