We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 88b4474 commit 705a6a4Copy full SHA for 705a6a4
plugins/node/opentelemetry-instrumentation-mysql2/src/utils.ts
@@ -155,8 +155,10 @@ export function getConnectionPrototypeToInstrument(connection: any) {
155
// so we need to instrument that instead, see https://github.com/sidorares/node-mysql2/pull/3081
156
// This checks if the functions we're instrumenting are there on the base - we cannot use the presence of a base
157
// prototype since EventEmitter is the base for mysql2@<=3.11.4
158
- if (typeof basePrototype?.query === 'function'
159
- && typeof basePrototype?.execute === 'function') {
+ if (
+ typeof basePrototype?.query === 'function' &&
160
+ typeof basePrototype?.execute === 'function'
161
+ ) {
162
return basePrototype;
163
}
164
0 commit comments