Skip to content

Commit

Permalink
fix(instr-mysql2): fix unwrap for [email protected]
Browse files Browse the repository at this point in the history
  • Loading branch information
david-luna committed Dec 4, 2024
1 parent f715adf commit 5a51c55
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -79,8 +79,7 @@ export class MySQL2Instrumentation extends InstrumentationBase<MySQL2Instrumenta
},
(moduleExports: any) => {
if (moduleExports === undefined) return;
const ConnectionPrototype: mysqlTypes.Connection =
moduleExports.Connection.prototype;
const ConnectionPrototype = this._getConnectionPrototype(moduleExports);
this._unwrap(ConnectionPrototype, 'query');
this._unwrap(ConnectionPrototype, 'execute');
}
Expand Down

0 comments on commit 5a51c55

Please sign in to comment.