From 2d3bb52762a637a4d0d0c14ff254eebc4fbbd508 Mon Sep 17 00:00:00 2001 From: Marc Pichler Date: Thu, 7 Mar 2024 09:32:01 +0100 Subject: [PATCH] fix(instrumentation-mongodb)!: temporarily reduce supported range to mongodb <6.4 (#1984) --- .../opentelemetry-instrumentation-mongodb/.tav.yml | 4 ++-- .../src/instrumentation.ts | 10 +++++----- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/plugins/node/opentelemetry-instrumentation-mongodb/.tav.yml b/plugins/node/opentelemetry-instrumentation-mongodb/.tav.yml index 518c012a77..1054845288 100644 --- a/plugins/node/opentelemetry-instrumentation-mongodb/.tav.yml +++ b/plugins/node/opentelemetry-instrumentation-mongodb/.tav.yml @@ -6,9 +6,9 @@ mongodb: commands: npm run test-v4 - versions: ">=5 <6" commands: npm run test-v5-v6 - - versions: ">=6 <7" + - versions: ">=6 <6.4" node: '>=15.0.0' commands: npm run test-v5-v6 # Fix missing `contrib-test-utils` package - pretest: npm run --prefix ../../../ lerna:link \ No newline at end of file + pretest: npm run --prefix ../../../ lerna:link diff --git a/plugins/node/opentelemetry-instrumentation-mongodb/src/instrumentation.ts b/plugins/node/opentelemetry-instrumentation-mongodb/src/instrumentation.ts index 02af814bf2..f2c9687c34 100644 --- a/plugins/node/opentelemetry-instrumentation-mongodb/src/instrumentation.ts +++ b/plugins/node/opentelemetry-instrumentation-mongodb/src/instrumentation.ts @@ -97,31 +97,31 @@ export class MongoDBInstrumentation extends InstrumentationBase { ), new InstrumentationNodeModuleDefinition( 'mongodb', - ['4.*', '5.*', '6.*'], + ['4.*', '5.*', '>=6 <6.4'], undefined, undefined, [ new InstrumentationNodeModuleFile( 'mongodb/lib/cmap/connection.js', - ['4.*', '5.*', '6.*'], + ['4.*', '5.*', '>=6 <6.4'], v4PatchConnection, v4UnpatchConnection ), new InstrumentationNodeModuleFile( 'mongodb/lib/cmap/connection_pool.js', - ['4.*', '5.*', '6.*'], + ['4.*', '5.*', '>=6 <6.4'], v4PatchConnectionPool, v4UnpatchConnectionPool ), new InstrumentationNodeModuleFile( 'mongodb/lib/cmap/connect.js', - ['4.*', '5.*', '6.*'], + ['4.*', '5.*', '>=6 <6.4'], v4PatchConnect, v4UnpatchConnect ), new InstrumentationNodeModuleFile( 'mongodb/lib/sessions.js', - ['4.*', '5.*', '6.*'], + ['4.*', '5.*', '>=6 <6.4'], v4PatchSessions, v4UnpatchSessions ),