-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
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 |
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
fb62082
Compare
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
b34541a
Compare
@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
22b2da1
Compare
22b2da1
to
e27c3a3
Compare
e27c3a3
to
b54f4c2
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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!
There is already this issue: #5347 |
b54f4c2
to
a8293ad
Compare
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
null
it 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)