Options
All
  • Public
  • Public/Protected
  • All
Menu

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.

Hierarchy

  • RequireInTheMiddleSingleton

Index

Methods

  • register(moduleName: string, onRequire: OnRequireFn): Hooked

Generated using TypeDoc