getsentry / getsentry/sentry-javascript
AI integration tests don't assert absence of PII when sendDefaultPii is false
Open
good first issue
javascript
Tests
- Dominant language
- TypeScript
- Stars
- 8.7k
- Forks
- 1.8k
- Avg merge
- 1d 17h
- Merged PRs (30d)
- 515
Description
All AI provider integration tests use `expect.objectContaining()` to verify span data when `sendDefaultPii: false`. The PII attributes are simply omitted from the expected object rather than explicitly asserted as absent. This means a regression that leaks PII attributes onto spans when `sendDefaultPii` is disabled would pass all existing tests.
Contributor guide
Assessment
This issue has not been assessed yet.