Skip to content

Commit

Permalink
feat(opentelemetry-instrumentation-mongodb) Mongo v6 support
Browse files Browse the repository at this point in the history
  • Loading branch information
aovens-quantifi committed Oct 6, 2023
1 parent 2d36152 commit 2070344
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ npm install --save @opentelemetry/instrumentation-mongodb

### Supported Versions

- `>=3.3 <5`
- `>=3.3`

## Usage

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -95,25 +95,25 @@ export class MongoDBInstrumentation extends InstrumentationBase {
),
new InstrumentationNodeModuleDefinition<any>(
'mongodb',
['4.*', '5.*'],
['4.*', '5.*', '6.*'],
undefined,
undefined,
[
new InstrumentationNodeModuleFile<V4Connection>(
'mongodb/lib/cmap/connection.js',
['4.*', '5.*'],
['4.*', '5.*', '6.*'],
v4PatchConnection,
v4UnpatchConnection
),
new InstrumentationNodeModuleFile<V4Connect>(
'mongodb/lib/cmap/connect.js',
['4.*', '5.*'],
['4.*', '5.*', '6.*'],
v4PatchConnect,
v4UnpatchConnect
),
new InstrumentationNodeModuleFile<V4Session>(
'mongodb/lib/sessions.js',
['4.*', '5.*'],
['4.*', '5.*', '6.*'],
v4PatchSessions,
v4UnpatchSessions
),
Expand Down

0 comments on commit 2070344

Please sign in to comment.