From d3989d32980e1f994a67b91c81831d126e6fbbc9 Mon Sep 17 00:00:00 2001 From: Siim Kallas Date: Wed, 21 Apr 2021 18:43:50 +0300 Subject: [PATCH] fix: add isEnabled to InstrumentationBase (#2135) Co-authored-by: Daniel Dyla --- .../src/platform/node/instrumentation.ts | 4 ++++ 1 file changed, 4 insertions(+) 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 {