Skip to content
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

fix(sdk): Set {{auto}} if user.ip_address is undefined #4466

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

krystofwoldrich
Copy link
Member

@krystofwoldrich krystofwoldrich commented Jan 20, 2025

📢 Type of change

  • Bugfix
  • Enhancement

Tasks

  • To align the behavior we need to add {{auto}} to RN v5 or upgrade to JS v9
  • And stop the Replay auto-fill for Cocoa and RN/JS.

❓ What to do for RN v6?

Map current behavior for RN JS, Cocoa, Android, and Android Native.

Plat Relay adds {{auto}} SDK adds {{auto}}
RN JS YES NO
Cocoa YES YES
Android NO YES
Android Native NO UNKNOWN

🛑 Blocked by JS v9

💡 Motivation and Context

💚 How did you test it?

unit tests

📝 Checklist

  • I added tests to verify changes
  • No new PII added or SDK only sends newly added PII if sendDefaultPII is enabled
  • I updated the docs if needed.
  • I updated the wizard if needed.
  • All tests passing
  • No breaking changes

@lucas-zimerman
Copy link
Collaborator

This PR depends on JS v9 before releasing? if so will we bump it only on a major version of Sentry React Native?

krystofwoldrich added a commit to getsentry/sentry-javascript that referenced this pull request Feb 3, 2025
- Related to #15008

Export helpers to avoid duplications in sentry/react-native.

- RN PR getsentry/sentry-react-native#4466
@krystofwoldrich
Copy link
Member Author

This PR depends on JS v9 before releasing? if so will we bump it only on a major version of Sentry React Native?

Yes, this depends on JS v9, which also means a major version of RN.

Comment on lines +57 to +58
this.on('postprocessEvent', addAutoIpAddressToUser);
this.on('beforeSendSession', addAutoIpAddressToSession);
Copy link

@timfish timfish Feb 13, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think you only want to add these hooks if sendDefaultPii is true!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Explicity set user.ip_address: {{auto}}
3 participants