faro-web-sdk
faro-web-sdk copied to clipboard
Web-tracing: fetch and xhr should ignore network events by default.
Why
The fetch and xhr instruments create several span events for the different stages of an http request. For a lot of users it is not useful and creates unnecessary additional payload as well.
Faro's already tracks resource events so the data is redundant. Note: currently the resource instrumentation doesn't map the resource to its respective trace id
What
- Set
ignoreNetworkEvents=truein the fetch and xhr instrumentation. - Allow to enable network events via the local config of the WebTracingInstrumentation class.
- Document
Links
- List of the additional network span events