You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/platforms/javascript/common/configuration/integrations/openai.mdx
+3-12Lines changed: 3 additions & 12 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -23,19 +23,20 @@ supported:
23
23
- javascript.astro
24
24
- javascript.bun
25
25
- javascript.tanstackstart-react
26
+
- javascript.cloudflare
26
27
---
27
28
28
29
<Alert>
29
30
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.
31
32
32
33
</Alert>
33
34
34
35
_Import name: `Sentry.openAIIntegration`_
35
36
36
37
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.
37
38
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:
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
-
59
54
<PlatformSection>
60
55
## Options
61
56
62
57
### `recordInputs`
63
58
64
-
Requires SDK version `9.44.0` or higher.
65
-
66
59
_Type: `boolean`_
67
60
68
61
Records inputs to OpenAI API method calls (such as prompts and messages).
@@ -77,8 +70,6 @@ Sentry.init({
77
70
78
71
### `recordOutputs`
79
72
80
-
Requires SDK version `9.44.0` or higher.
81
-
82
73
_Type: `boolean`_
83
74
84
75
Records outputs from OpenAI API method calls (such as generated text and responses).
0 commit comments