Skip to content

Commit

Permalink
fix: mongodb unwrapping (open-telemetry#1089)
Browse files Browse the repository at this point in the history
  • Loading branch information
nozik authored Jul 14, 2022
1 parent e265723 commit 1db1fec
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@ export class MongoDBInstrumentation extends InstrumentationBase<
diag.debug(`Applying patch for mongodb@${moduleVersion}`);
// patch insert operation
if (isWrapped(moduleExports.Connection.prototype.command)) {
this._unwrap(moduleExports, 'command');
this._unwrap(moduleExports.Connection.prototype, 'command');
}

this._wrap(
Expand Down

0 comments on commit 1db1fec

Please sign in to comment.