File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
plugins/node/opentelemetry-instrumentation-mysql2/src Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -147,13 +147,13 @@ export const once = (fn: Function) => {
147147 } ;
148148} ;
149149
150- export function getConnectionPrototypeToInstrument ( connection : any ) {
150+ export function getConnectionPrototypeToInstrument ( connection : any ) {
151151 const connectionPrototype = connection . prototype ;
152152 const basePrototype = Object . getPrototypeOf ( connectionPrototype ) ;
153153
154154 // [email protected] included a refactoring, where most code was moved out of the `Connection` class and into a shared base 155155 // so we need to instrument that instead, see https://github.com/sidorares/node-mysql2/pull/3081
156- if ( basePrototype ?. constructor ?. name === 'BaseConnection' ) {
156+ if ( basePrototype ?. constructor ?. name === 'BaseConnection' ) {
157157 return basePrototype ;
158158 }
159159
You can’t perform that action at this time.
0 commit comments