Singleton class for require-in-the-middle
Allows instrumentation plugins to patch modules with only a single require patch
WARNING: Because this class will create its own require-in-the-middle (RITM) instance,
we should minimize the number of new instances of this class.
Multiple instances of @opentelemetry/instrumentation (e.g. multiple versions) in a single process
will result in multiple instances of RITM, which will have an impact
on the performance of instrumentation hooks being applied.
Singleton class for
require-in-the-middle
Allows instrumentation plugins to patch modules with only a singlerequire
patch WARNING: Because this class will create its ownrequire-in-the-middle
(RITM) instance, we should minimize the number of new instances of this class. Multiple instances of@opentelemetry/instrumentation
(e.g. multiple versions) in a single process will result in multiple instances of RITM, which will have an impact on the performance of instrumentation hooks being applied.