Skip to content

Commit 34a64bd

Browse files
committed
Add changelog entry
1 parent bb8db23 commit 34a64bd

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

CHANGELOG.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,22 @@ Sentry.init({
2525

2626
Spans matching the filter criteria will not be recorded. Potential child spans of filtered spans will be re-parented, if possible.
2727

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+
2844
## 10.1.0
2945

3046
- feat(nuxt): Align build-time options to follow bundler plugins structure ([#17255](https://github.com/getsentry/sentry-javascript/pull/17255))

0 commit comments

Comments
 (0)