This is the first stage of adding native node fetch instrumentation.
This PR splits the existing http library instrumentation to the core logic of tracing a generic http request (the BaseHttp class) and the instrumentation connecting that logic to the http / https libraries (the Http class).
The next stage will be in a separate PR that will use the BaseHttp class to integrate to a new http library called undici (This is the library that native node fetch uses behind the scenes)
This is the first stage of adding native node fetch instrumentation.
This PR splits the existing http library instrumentation to the core logic of tracing a generic http request (the
BaseHttp
class) and the instrumentation connecting that logic to thehttp
/https
libraries (theHttp
class).The next stage will be in a separate PR that will use the
BaseHttp
class to integrate to a new http library calledundici
(This is the library that native node fetch uses behind the scenes)