Skip to content

Commit

Permalink
fix(instrumentation-mongodb)!: temporarily reduce supported range to …
Browse files Browse the repository at this point in the history
…mongodb <6.4 (#1984)
  • Loading branch information
pichlermarc authored Mar 7, 2024
1 parent ff40cc8 commit 2d3bb52
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
4 changes: 2 additions & 2 deletions plugins/node/opentelemetry-instrumentation-mongodb/.tav.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
pretest: npm run --prefix ../../../ lerna:link
Original file line number Diff line number Diff line change
Expand Up @@ -97,31 +97,31 @@ export class MongoDBInstrumentation extends InstrumentationBase {
),
new InstrumentationNodeModuleDefinition<any>(
'mongodb',
['4.*', '5.*', '6.*'],
['4.*', '5.*', '>=6 <6.4'],
undefined,
undefined,
[
new InstrumentationNodeModuleFile<V4Connection>(
'mongodb/lib/cmap/connection.js',
['4.*', '5.*', '6.*'],
['4.*', '5.*', '>=6 <6.4'],
v4PatchConnection,
v4UnpatchConnection
),
new InstrumentationNodeModuleFile<V4ConnectionPool>(
'mongodb/lib/cmap/connection_pool.js',
['4.*', '5.*', '6.*'],
['4.*', '5.*', '>=6 <6.4'],
v4PatchConnectionPool,
v4UnpatchConnectionPool
),
new InstrumentationNodeModuleFile<V4Connect>(
'mongodb/lib/cmap/connect.js',
['4.*', '5.*', '6.*'],
['4.*', '5.*', '>=6 <6.4'],
v4PatchConnect,
v4UnpatchConnect
),
new InstrumentationNodeModuleFile<V4Session>(
'mongodb/lib/sessions.js',
['4.*', '5.*', '6.*'],
['4.*', '5.*', '>=6 <6.4'],
v4PatchSessions,
v4UnpatchSessions
),
Expand Down

0 comments on commit 2d3bb52

Please sign in to comment.