File tree Expand file tree Collapse file tree 1 file changed +2
-4
lines changed 
packages/tracing/src/integrations Expand file tree Collapse file tree 1 file changed +2
-4
lines changed Original file line number Diff line number Diff line change @@ -3,9 +3,7 @@ import { EventProcessor, Integration } from '@sentry/types';
33import  {  dynamicRequire ,  fill ,  logger  }  from  '@sentry/utils' ; 
44
55interface  MysqlConnection  { 
6-   prototype : { 
7-     query : ( )  =>  void ; 
8-   } ; 
6+   createQuery : ( )  =>  void ; 
97} 
108
119/** Tracing integration for node-mysql package */ 
@@ -38,7 +36,7 @@ export class Mysql implements Integration {
3836    //    function (callback) => void 
3937    //    function (options, callback) => void 
4038    //    function (options, values, callback) => void 
41-     fill ( connection . prototype ,  'query ' ,  function ( orig : ( )  =>  void )  { 
39+     fill ( connection ,  'createQuery ' ,  function ( orig : ( )  =>  void )  { 
4240      return  function ( this : unknown ,  options : unknown ,  values : unknown ,  callback : unknown )  { 
4341        const  scope  =  getCurrentHub ( ) . getScope ( ) ; 
4442        const  parentSpan  =  scope ?. getSpan ( ) ; 
 
 
   
 
     
   
   
          
    
    
     
    
      
     
     
    You can’t perform that action at this time.
  
 
    
  
    
      
        
     
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments