Skip to content

Commit

Permalink
chore: change property to be a getter
Browse files Browse the repository at this point in the history
  • Loading branch information
vmarchaud committed Mar 2, 2021
1 parent 2339bed commit 6d7367b
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ import {
export class MongoDBInstrumentation extends InstrumentationBase<
typeof mongodb
> {
private _supportedVersions = ['>=3.3 <4']

constructor(protected _config: MongoDbInstrumentationConfig = {}) {
super('@opentelemetry/instrumentation-mongodb', VERSION, _config);
}
Expand All @@ -72,6 +72,10 @@ export class MongoDBInstrumentation extends InstrumentationBase<
];
}

private get _supportedVersions () {
return ['>=3.3 <4'];
}

private _getPatches<T extends WireProtocolInternal>() {
return {
patch: (moduleExports: T, moduleVersion?: string) => {
Expand Down

0 comments on commit 6d7367b

Please sign in to comment.