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: auto ip guarded by sendDefaultPii #2726

Merged
merged 12 commits into from
Feb 19, 2025

Conversation

buenaflor
Copy link
Contributor

@buenaflor buenaflor commented Feb 17, 2025

💡 Motivation and Context

Previously wasn't guarded by sendDefaultPii because of #1562

getsentry/team-sdks#118 states it should only be added if sendDefaultPii = true

💚 How did you test it?

Unit test

📝 Checklist

  • I reviewed submitted code
  • 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
  • All tests passing
  • No breaking changes

🔮 Next steps

@buenaflor
Copy link
Contributor Author

cc @kahest, would this be considered breaking if we fix this in v8?

Copy link

codecov bot commented Feb 17, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 88.99%. Comparing base (67a5716) to head (c6550d1).
Report is 2 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #2726   +/-   ##
=======================================
  Coverage   88.99%   88.99%           
=======================================
  Files         263      263           
  Lines        8921     8923    +2     
=======================================
+ Hits         7939     7941    +2     
  Misses        982      982           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Copy link
Contributor

github-actions bot commented Feb 17, 2025

Android Performance metrics 🚀

  Plain With Sentry Diff
Startup time 447.76 ms 536.60 ms 88.84 ms
Size 6.46 MiB 7.48 MiB 1.02 MiB

Baseline results on branch: main

Startup times

Revision Plain With Sentry Diff
e893df5 310.60 ms 380.58 ms 69.98 ms
8de999e 475.70 ms 531.38 ms 55.68 ms
636cb61 366.59 ms 448.14 ms 81.55 ms
1596141 300.92 ms 368.94 ms 68.02 ms
8bac8ba 467.65 ms 520.27 ms 52.63 ms
e66e71e 296.84 ms 345.43 ms 48.59 ms
9555112 448.81 ms 488.89 ms 40.08 ms
95c69e3 379.93 ms 441.96 ms 62.02 ms
30c1193 349.00 ms 438.20 ms 89.20 ms
6d317ea 303.46 ms 356.06 ms 52.60 ms

App size

Revision Plain With Sentry Diff
e893df5 6.06 MiB 7.09 MiB 1.03 MiB
8de999e 6.46 MiB 7.48 MiB 1.01 MiB
636cb61 6.27 MiB 7.20 MiB 959.08 KiB
1596141 6.16 MiB 7.14 MiB 1003.98 KiB
8bac8ba 6.46 MiB 7.48 MiB 1.03 MiB
e66e71e 6.06 MiB 7.09 MiB 1.03 MiB
9555112 6.52 MiB 7.59 MiB 1.06 MiB
95c69e3 6.35 MiB 7.35 MiB 1021.71 KiB
30c1193 6.27 MiB 7.20 MiB 958.74 KiB
6d317ea 5.94 MiB 6.92 MiB 1001.74 KiB

Previous results on branch: fix/auto-ip-guarded-by-senddefault

Startup times

Revision Plain With Sentry Diff
67a0ef4 470.94 ms 572.15 ms 101.21 ms
a2684a2 411.91 ms 498.44 ms 86.53 ms
dcae18c 480.57 ms 540.11 ms 59.53 ms
87893cc 415.68 ms 502.84 ms 87.16 ms

App size

Revision Plain With Sentry Diff
67a0ef4 6.46 MiB 7.48 MiB 1.02 MiB
a2684a2 6.46 MiB 7.48 MiB 1.02 MiB
dcae18c 6.46 MiB 7.48 MiB 1.02 MiB
87893cc 6.46 MiB 7.48 MiB 1.02 MiB

@kahest
Copy link
Member

kahest commented Feb 17, 2025

cc @kahest, would this be considered breaking if we fix this in v8?

as discussed - yes we should ship it in a v8 minor with very clear callout on the change log, similar to other platforms (e.g. .NET, Java/Android)

Copy link
Member

@kahest kahest left a comment

Choose a reason for hiding this comment

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

apart from missing changelog, LGTM

Copy link
Contributor

github-actions bot commented Feb 17, 2025

iOS Performance metrics 🚀

  Plain With Sentry Diff
Startup time 1224.06 ms 1263.83 ms 39.77 ms
Size 8.42 MiB 9.91 MiB 1.49 MiB

Baseline results on branch: main

Startup times

Revision Plain With Sentry Diff
e82709a 1249.22 ms 1271.35 ms 22.12 ms
1cc9547 1230.81 ms 1260.79 ms 29.98 ms
99704d2 1241.74 ms 1258.00 ms 16.26 ms
934f10e 1245.18 ms 1263.77 ms 18.59 ms
6aab859 1245.14 ms 1247.59 ms 2.45 ms
0118295 1211.31 ms 1227.02 ms 15.71 ms
8fe0817 1235.41 ms 1245.51 ms 10.10 ms
d7dc4e5 1249.15 ms 1275.63 ms 26.49 ms
f4cc744 1274.57 ms 1290.79 ms 16.22 ms
3a43905 1254.31 ms 1266.35 ms 12.04 ms

App size

Revision Plain With Sentry Diff
e82709a 8.33 MiB 9.40 MiB 1.07 MiB
1cc9547 8.42 MiB 9.86 MiB 1.44 MiB
99704d2 8.42 MiB 9.87 MiB 1.44 MiB
934f10e 8.38 MiB 9.77 MiB 1.39 MiB
6aab859 8.29 MiB 9.36 MiB 1.07 MiB
0118295 8.32 MiB 9.38 MiB 1.05 MiB
8fe0817 8.29 MiB 9.39 MiB 1.10 MiB
d7dc4e5 8.42 MiB 9.91 MiB 1.48 MiB
f4cc744 8.16 MiB 9.16 MiB 1.01 MiB
3a43905 8.10 MiB 9.18 MiB 1.08 MiB

Previous results on branch: fix/auto-ip-guarded-by-senddefault

Startup times

Revision Plain With Sentry Diff
87893cc 1258.94 ms 1272.43 ms 13.49 ms
a2684a2 1251.69 ms 1269.94 ms 18.24 ms
67a0ef4 1252.20 ms 1267.39 ms 15.18 ms
dcae18c 1237.86 ms 1261.09 ms 23.23 ms

App size

Revision Plain With Sentry Diff
87893cc 8.42 MiB 9.91 MiB 1.49 MiB
a2684a2 8.42 MiB 9.91 MiB 1.49 MiB
67a0ef4 8.42 MiB 9.91 MiB 1.49 MiB
dcae18c 8.42 MiB 9.91 MiB 1.49 MiB

@buenaflor buenaflor marked this pull request as ready for review February 19, 2025 13:03
@buenaflor buenaflor merged commit f304748 into main Feb 19, 2025
160 of 161 checks passed
@buenaflor buenaflor deleted the fix/auto-ip-guarded-by-senddefault branch February 19, 2025 14:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants