faro-web-sdk icon indicating copy to clipboard operation
faro-web-sdk copied to clipboard

Web-tracing: fetch and xhr should ignore network events by default.

Open codecapitano opened this issue 1 year ago • 0 comments

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=true in the fetch and xhr instrumentation.
  • Allow to enable network events via the local config of the WebTracingInstrumentation class.
  • Document

Links

codecapitano avatar Jul 24 '24 07:07 codecapitano