File tree 1 file changed +7
-3
lines changed
packages/node/src/integrations/tracing 1 file changed +7
-3
lines changed Original file line number Diff line number Diff line change @@ -68,16 +68,18 @@ export class SentryNestInstrumentation extends InstrumentationBase {
68
68
/**
69
69
*
70
70
*/
71
- public init ( ) : void {
71
+ public init ( ) : any {
72
72
logger . log ( 'init!' ) ;
73
- const module = new InstrumentationNodeModuleDefinition (
73
+ const nodeModuleDefinition = new InstrumentationNodeModuleDefinition (
74
74
SentryNestInstrumentation . COMPONENT ,
75
75
supportedVersions
76
76
)
77
77
78
- module . files . push (
78
+ nodeModuleDefinition . files . push (
79
79
this . _getInjectableFileInstrumentation ( supportedVersions )
80
80
)
81
+
82
+ return nodeModuleDefinition ;
81
83
}
82
84
83
85
/**
@@ -89,6 +91,7 @@ export class SentryNestInstrumentation extends InstrumentationBase {
89
91
'@nestjs/common/decorators/core/injectable.decorator.js' ,
90
92
versions ,
91
93
( moduleExports : any ) => {
94
+ console . log ( moduleExports ) ;
92
95
// eslint-disable-next-line @typescript-eslint/no-unsafe-member-access
93
96
if ( isWrapped ( moduleExports . Injectable ) ) {
94
97
this . _unwrap ( moduleExports , 'Injectable' ) ;
@@ -130,6 +133,7 @@ const instrumentNestCore = generateInstrumentOnce('Nest-Core', () => {
130
133
131
134
const instrumentMiddleware = generateInstrumentOnce ( 'Nest-Middleware' , ( ) => {
132
135
logger . log ( 'init nest middleware instrumentation' ) ;
136
+ console . log ( 'init nest middleware instrumentation' ) ;
133
137
return new SentryNestInstrumentation ( ) ;
134
138
} ) ;
135
139
You can’t perform that action at this time.
0 commit comments