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 1d59d8a commit 356875cCopy full SHA for 356875c
packages/node/src/integrations/tracing/openai/instrumentation.ts
@@ -96,6 +96,20 @@ export class SentryOpenAiInstrumentation extends InstrumentationBase<Instrumenta
96
enumerable: true,
97
});
98
}
99
+
100
+ // Also wrap the default export if it points to the original constructor
101
+ if (exports.default === Original) {
102
+ try {
103
+ exports.default = WrappedOpenAI;
104
+ } catch (error) {
105
+ Object.defineProperty(exports, 'default', {
106
+ value: WrappedOpenAI,
107
+ writable: true,
108
+ configurable: true,
109
+ enumerable: true,
110
+ });
111
+ }
112
113
return exports;
114
115
0 commit comments