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 2968836 commit 88b4474Copy full SHA for 88b4474
plugins/node/opentelemetry-instrumentation-mysql2/src/utils.ts
@@ -155,7 +155,8 @@ 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' && typeof basePrototype?.execute === 'function') {
+ if (typeof basePrototype?.query === 'function'
159
+ && typeof basePrototype?.execute === 'function') {
160
return basePrototype;
161
}
162
0 commit comments