diff --git a/packages/opentelemetry-instrumentation/src/platform/node/instrumentation.ts b/packages/opentelemetry-instrumentation/src/platform/node/instrumentation.ts index e31476a369..98900383ff 100644 --- a/packages/opentelemetry-instrumentation/src/platform/node/instrumentation.ts +++ b/packages/opentelemetry-instrumentation/src/platform/node/instrumentation.ts @@ -160,6 +160,10 @@ export abstract class InstrumentationBase } } } + + public isEnabled() { + return this._enabled; + } } function isSupported(supportedVersions: string[], version: string): boolean {