getsentry / getsentry/sentry-react-native
Migrate IP address inference to `dataCollection.userInfo`
Aperta
Errors
React-Native
Task
- Lingua principale
- TypeScript
- Stelle
- 1.8k
- Fork
- 366
- Merge medio
- 1g 9h
- PR unite (30g)
- 89
Descrizione
Replace `sendDefaultPii` checks for IP address handling with `dataCollection.userInfo`.
## Callsites
1. `client.ts:63` — `infer_ip` setting for Relay: `options.sendDefaultPii ? 'auto' : 'never'`
2. `client.ts:85` — `addAutoIpAddressToSession` listener gated on `sendDefaultPii === true`
Both should read from the resolved `dataCollection.userInfo` instead.
## References
* `packages/core/src/js/client.ts`
* `packages/core/test/client.test.ts` — existing tests for IP address behavior
Guida per i contributori
Apri la guida per i contributori
Valutazione
Questa issue non è ancora stata valutata.