Skip to content

Commit 2970ff9

Browse files
committed
simplify privacy section
1 parent 89be4ca commit 2970ff9

File tree

1 file changed

+10
-22
lines changed

1 file changed

+10
-22
lines changed

docs/product/insights/agents/privacy.mdx

Lines changed: 10 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -4,18 +4,22 @@ sidebar_order: 20
44
description: "Learn how to control data collection and protect sensitive information in AI agent monitoring."
55
---
66

7-
By default, Sentry AI agent integrations respect your SDK's PII (Personally Identifiable Information) settings:
7+
## SDK PII Settings
88

9-
- **When Send Default PII is disabled** (default): Only metadata like model names, token counts, tool names, and execution times are collected
10-
- **When Send Default PII is enabled**: Full inputs, outputs, prompts, and responses from AI models and tools are captured
9+
By default, Sentry AI agent integrations respect your [SDK's PII settings](/platforms/javascript/guides/nextjs/data-management/data-collected/):
1110

12-
## Data Scrubbing and Protection
11+
- `sendDefaultPii: false` - Only metadata like model names, token counts, tool names, and execution times are collected
12+
- `sendDefaultPii: true` - Full inputs, outputs, prompts, and responses from AI models and tools are captured.
13+
14+
You can override this by configuring it on a function call level. For more details see [Configuration](/platforms/javascript/guides/nextjs/configuration/integrations/vercelai/#configuration).
15+
16+
## Server side PII Scrubbing
1317

1418
<Alert level="info">
1519

1620
Sentry has built-in [Server-Side Data Scrubbing](/security-legal-pii/scrubbing/server-side-scrubbing/) that automatically detects and removes common sensitive data like credit card numbers, social security numbers, and passwords from most event data.
1721

18-
However, Following AI agent span attributes may not be fully protected by these scrubbers.
22+
However, the following AI agent span attributes are not protected by default:
1923

2024
- `gen_ai.prompt`
2125
- `gen_ai.request.messages`
@@ -26,22 +30,6 @@ However, Following AI agent span attributes may not be fully protected by these
2630
- `gen_ai.response.object`
2731

2832
</Alert>
29-
If you wish to enable Data Scrubbing for any of these fields you can add them to **Additional Sensitive Fields** in **Security & Privacy** settings.
33+
If you wish to enable Data Scrubbing for any of these fields you can add them to **Global Sensitive Fields** in **Security & Privacy** [settings](https://sentry.io/orgredirect/organizations/:orgslug/settings/organization/security-and-privacy) or to **Additional Sensitive Fields** in Project settings under **Security & Privacy**.
3034

3135
![Additional Sensitive Fields](./img/data-scrubbing.png)
32-
33-
## Overriding Collection Settings
34-
35-
Using Vercel AI SDK you can override the global PII settings for specific AI operations by setting `recordInputs` and `recordOutputs` to `true`:
36-
37-
```javascript
38-
const result = await generateText({
39-
model: openai("gpt-4o"),
40-
prompt: userQuery,
41-
experimental_telemetry: {
42-
isEnabled: true,
43-
recordInputs: true,
44-
recordOutputs: true,
45-
},
46-
});
47-
```

0 commit comments

Comments
 (0)