Skip to content

Commit 2a0435b

Browse files
committed
update sdk version and include cloudflare and vercel edge
1 parent 5c20795 commit 2a0435b

File tree

1 file changed

+3
-12
lines changed
  • docs/platforms/javascript/common/configuration/integrations

1 file changed

+3
-12
lines changed

docs/platforms/javascript/common/configuration/integrations/openai.mdx

Lines changed: 3 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -23,19 +23,20 @@ supported:
2323
- javascript.astro
2424
- javascript.bun
2525
- javascript.tanstackstart-react
26+
- javascript.cloudflare
2627
---
2728

2829
<Alert>
2930

30-
This integration only works in the Node.js runtime. Requires SDK version `9.44.0` or higher.
31+
This integration works in the Node.js, Cloudflare Workers, Vercel Edge Functions runtimes. It requires SDK version `10.2.0` or higher.
3132

3233
</Alert>
3334

3435
_Import name: `Sentry.openAIIntegration`_
3536

3637
The `openAIIntegration` adds instrumentation for the `openai` API to capture spans by automatically wrapping OpenAI client calls and recording LLM interactions with configurable input/output recording.
3738

38-
It is enabled by default and will automatically capture spans for all OpenAI API method calls. You can opt-in to capture inputs and outputs by setting `recordInputs` and `recordOutputs` in the integration config:
39+
It is enabled by default and will automatically capture spans for OpenAI API method calls. You can opt-in to capture inputs and outputs by setting `recordInputs` and `recordOutputs` in the integration config:
3940

4041
```javascript
4142
Sentry.init({
@@ -50,19 +51,11 @@ Sentry.init({
5051
});
5152
```
5253

53-
<PlatformSection supported={['javascript.nextjs']}>
54-
55-
This integration only works in the Node.js runtime, not in the Edge runtime. For Next.js applications using the Edge runtime, this integration will not be available.
56-
57-
</PlatformSection>
58-
5954
<PlatformSection>
6055
## Options
6156

6257
### `recordInputs`
6358

64-
Requires SDK version `9.44.0` or higher.
65-
6659
_Type: `boolean`_
6760

6861
Records inputs to OpenAI API method calls (such as prompts and messages).
@@ -77,8 +70,6 @@ Sentry.init({
7770

7871
### `recordOutputs`
7972

80-
Requires SDK version `9.44.0` or higher.
81-
8273
_Type: `boolean`_
8374

8475
Records outputs from OpenAI API method calls (such as generated text and responses).

0 commit comments

Comments
 (0)