Uh oh!
There was an error while loading. Please reload this page.
feat(browser): Set user.ip_address explicitly to {{auto}} - #15008
Conversation
size-limit report 📦
|
❌ 1 Tests Failed:
View the full list of 1 ❄️ flaky tests
To view more test analytics, go to the Test Analytics Dashboard |
krystofwoldrich
commented
Jan 14, 2025
Why do we implement this only in |
Yep, good point. I just added this to Electron which would be unnecessary if this was added to core. I think we don't want this in the Node client (or other server clients) because it would mean all events end up with the server IP address? This PR is missing the |
8670611 to
fb62082Comparemydea
commented
Jan 15, 2025
The idea behind adding this to browser client directly is because we def. do not want this for server side clients, so IMHO it should not live in core 🤔 Regarding the |
522d43a to
b34541aComparemydea
commented
Jan 16, 2025
@krystofwoldrich & @timfish I ended up rewriting this a bit to use hooks instead of hard-coding this too much into the browser SDK. This means that electron/RN should be able to just copy the hook config from the browser SDK to get the same/consistent behavior! |
b34541a to
22b2da1Compare22b2da1 to
e27c3a3Comparee27c3a3 to
b54f4c2Compare
timfish
left a comment
There was a problem hiding this comment.
We should open an issue to track sendDefaultPii because currently if you set sendDefaultPii: false it will still result in an IP address being included and it might get forgotten!
mydea
commented
Jan 20, 2025
There is already this issue: #5347 |
b54f4c2 to
a8293adCompare- Related to #15008 Export helpers to avoid duplications in sentry/react-native. - RN PR getsentry/sentry-react-native#4466
Part of getsentry/team-sdks#118
This is so far inferred at relay-side, which is pretty intransparent and potentially confusing.
So instead, we want to explicitly set this in the SDK. If this is set to
nullit will not be inferred (which is kind of intransparent too, but...)This is set for:
user.ip_address)user.ip_address)user.ip_address)user.ip_address)user.ip_address)attr.ip_address: '{{auto}}''client.address': '{{auto}}'attribute)