Skip to content

Introduce abstractions to bind HTTP request tracing spans to React component spans

Created by: valerybugakov

We need to introduce abstractions that would allow us to easily bind HTTP request tracing spans created by React components to React component spans. Currently, it's done via imperative APIs provided by @opentelemetry packages. It complicates the code and makes it harder to create the correct trace structure.

Possible solutions:

  1. Introduce React hook wrappers around common data fetching patterns.
  2. Implement auto-instrumentation that would leverage zone.js to bind async operations initiated by React components.

/cc @taylorsperry @jasongornall