File tree Expand file tree Collapse file tree 1 file changed +16
-0
lines changed Expand file tree Collapse file tree 1 file changed +16
-0
lines changed Original file line number Diff line number Diff line change @@ -25,6 +25,22 @@ Sentry.init({
25
25
26
26
Spans matching the filter criteria will not be recorded. Potential child spans of filtered spans will be re-parented, if possible.
27
27
28
+ - ** feat(cloudflare,vercel-edge): Add support for OpenAI instrumentation ([ #17338 ] ( https://github.com/getsentry/sentry-javascript/pull/17338 ) )**
29
+
30
+ Adds support for OpenAI manual instrumentation in ` @sentry/cloudflare ` and ` @sentry/vercel-edge ` .
31
+
32
+ To instrument the OpenAI client, wrap it with ` Sentry.instrumentOpenAiClient ` and set recording settings.
33
+
34
+ ``` js
35
+ import * as Sentry from ' @sentry/cloudflare' ;
36
+ import OpenAI from ' openai' ;
37
+
38
+ const openai = new OpenAI ();
39
+ const client = Sentry .instrumentOpenAiClient (openai, { recordInputs: true , recordOutputs: true });
40
+
41
+ // use the wrapped client
42
+ ```
43
+
28
44
## 10.1.0
29
45
30
46
- feat(nuxt): Align build-time options to follow bundler plugins structure ([ #17255 ] ( https://github.com/getsentry/sentry-javascript/pull/17255 ) )
You can’t perform that action at this time.
0 commit comments