Skip to content

Commit

Permalink
fix: add isEnabled to InstrumentationBase (open-telemetry#2135)
Browse files Browse the repository at this point in the history
Co-authored-by: Daniel Dyla <dyladan@users.noreply.github.com>
  • Loading branch information
seemk and dyladan committed Apr 21, 2021
1 parent 4f9d2b2 commit d3989d3
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -160,6 +160,10 @@ export abstract class InstrumentationBase<T = any>
}
}
}

public isEnabled() {
return this._enabled;
}
}

function isSupported(supportedVersions: string[], version: string): boolean {
Expand Down

0 comments on commit d3989d3

Please sign in to comment.