Commit bfe5e88
authored
feat(node): Expand how vercel ai input/outputs can be set (#16455)
resolves #16452
Based on feedback, we want to enable attaching prompts (inputs/outputs)
to vercel AI spans if `sendDefaultPii` is `true`.
We also add new integration options to the Vercel AI integration that
allows you to override this.
```ts
export interface VercelAiOptions {
/**
* Enable or disable input recording. Enabled if `sendDefaultPii` is `true`
* or if you set `isEnabled` to `true` in your ai SDK method telemetry settings
*/
recordInputs?: boolean;
/**
* Enable or disable output recording. Enabled if `sendDefaultPii` is `true`
* or if you set `isEnabled` to `true` in your ai SDK method telemetry settings
*/
recordOutputs?: boolean;
}
```
Usage:
```ts
Sentry.vercelAIIntegration({ recordInputs: true });
```1 parent 45088a2 commit bfe5e88
File tree
12 files changed
+619
-349
lines changed- dev-packages/node-integration-tests
- suites/tracing
- ai
- vercelai
- packages/node
- src/integrations/tracing/vercelai
- test/integrations/tracing/vercelai
12 files changed
+619
-349
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
36 | 36 | | |
37 | 37 | | |
38 | 38 | | |
39 | | - | |
| 39 | + | |
40 | 40 | | |
41 | 41 | | |
42 | 42 | | |
| |||
Lines changed: 0 additions & 131 deletions
This file was deleted.
Lines changed: 11 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
| 9 | + | |
9 | 10 | | |
0 commit comments