File tree 1 file changed +2
-4
lines changed
packages/tracing/src/integrations
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';
3
3
import { dynamicRequire , fill , logger } from '@sentry/utils' ;
4
4
5
5
interface MysqlConnection {
6
- prototype : {
7
- query : ( ) => void ;
8
- } ;
6
+ createQuery : ( ) => void ;
9
7
}
10
8
11
9
/** Tracing integration for node-mysql package */
@@ -38,7 +36,7 @@ export class Mysql implements Integration {
38
36
// function (callback) => void
39
37
// function (options, callback) => void
40
38
// function (options, values, callback) => void
41
- fill ( connection . prototype , 'query ' , function ( orig : ( ) => void ) {
39
+ fill ( connection , 'createQuery ' , function ( orig : ( ) => void ) {
42
40
return function ( this : unknown , options : unknown , values : unknown , callback : unknown ) {
43
41
const scope = getCurrentHub ( ) . getScope ( ) ;
44
42
const parentSpan = scope ?. getSpan ( ) ;
You can’t perform that action at this time.
0 commit comments