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/product/insights/agents/privacy.mdx
+10-22Lines changed: 10 additions & 22 deletions
Original file line number
Diff line number
Diff line change
@@ -4,18 +4,22 @@ sidebar_order: 20
4
4
description: "Learn how to control data collection and protect sensitive information in AI agent monitoring."
5
5
---
6
6
7
-
By default, Sentry AI agent integrations respect your SDK's PII (Personally Identifiable Information) settings:
7
+
## SDK PII Settings
8
8
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/):
11
10
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
13
17
14
18
<Alertlevel="info">
15
19
16
20
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.
17
21
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:
19
23
20
24
-`gen_ai.prompt`
21
25
-`gen_ai.request.messages`
@@ -26,22 +30,6 @@ However, Following AI agent span attributes may not be fully protected by these
26
30
-`gen_ai.response.object`
27
31
28
32
</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**.
0 commit comments