File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed
packages/node/src/integrations/tracing/vercelai Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -109,7 +109,7 @@ export class SentryVercelAiInstrumentation extends InstrumentationBase {
109
109
this . _callbacks = [ ] ;
110
110
111
111
function generatePatch ( originalMethod : ( ...args : MethodArgs ) => unknown ) {
112
- return function ( this : unknown , ...args : MethodArgs ) {
112
+ return ( ...args : MethodArgs ) => {
113
113
const existingExperimentalTelemetry = args [ 0 ] . experimental_telemetry || { } ;
114
114
const isEnabled = existingExperimentalTelemetry . isEnabled ;
115
115
@@ -132,6 +132,7 @@ export class SentryVercelAiInstrumentation extends InstrumentationBase {
132
132
recordOutputs,
133
133
} ;
134
134
135
+ // @ts -expect-error we know that the method exists
135
136
return originalMethod . apply ( this , args ) ;
136
137
} ;
137
138
}
You can’t perform that action at this time.
0 commit comments