Skip to content

Commit ac425ea

Browse files
cursoragentmydea
authored andcommitted
Changes from background composer bc-a31bbb18-5a7c-4b0e-b632-2ac4c565ac30
1 parent ec1380c commit ac425ea

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

packages/node/src/integrations/tracing/vercelai/instrumentation.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ export class SentryVercelAiInstrumentation extends InstrumentationBase {
109109
this._callbacks = [];
110110

111111
function generatePatch(originalMethod: (...args: MethodArgs) => unknown) {
112-
return function (this: unknown, ...args: MethodArgs) {
112+
return (...args: MethodArgs) => {
113113
const existingExperimentalTelemetry = args[0].experimental_telemetry || {};
114114
const isEnabled = existingExperimentalTelemetry.isEnabled;
115115

@@ -132,6 +132,7 @@ export class SentryVercelAiInstrumentation extends InstrumentationBase {
132132
recordOutputs,
133133
};
134134

135+
// @ts-expect-error we know that the method exists
135136
return originalMethod.apply(this, args);
136137
};
137138
}

0 commit comments

Comments
 (0)