lumigo-io / lumigo-node

Lumigo's Node.js Distributed Tracing and Performance Agent
https://lumigo.io
Apache License 2.0
76 stars 12 forks source link

fix: split http instrumentation to core logic and http lib integration #482

Closed sagivoululumigo closed 5 months ago

sagivoululumigo commented 6 months ago

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)