We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d81bb7f commit 7a813edCopy full SHA for 7a813ed
1 file changed
packages/node/src/integrations/tracing/vercelai/instrumentation.ts
@@ -109,7 +109,7 @@ export class SentryVercelAiInstrumentation extends InstrumentationBase {
109
this._callbacks = [];
110
111
function generatePatch(originalMethod: (...args: MethodArgs) => unknown) {
112
- return function (this: unknown, ...args: MethodArgs) {
+ return (...args: MethodArgs) => {
113
const existingExperimentalTelemetry = args[0].experimental_telemetry || {};
114
const isEnabled = existingExperimentalTelemetry.isEnabled;
115
@@ -132,6 +132,7 @@ export class SentryVercelAiInstrumentation extends InstrumentationBase {
132
recordOutputs,
133
};
134
135
+ // @ts-expect-error we know that the method exists
136
return originalMethod.apply(this, args);
137
138
}
0 commit comments