Skip to content

Conversation

@buenaflor
Copy link
Contributor

@buenaflor buenaflor commented Aug 26, 2025

💡 Motivation and Context

InheritedWidget does not render and currently using provider will flag for all widgets matching the regex since they use InheritedWidget underneath

So when we encounter an InheritedWidget we just keep processing -> masking won't be compromised

e.g InheritedWidget: _InheritedProviderScope<PasswordNotifier?>

Fixes #3179

💚 How did you test it?

Unit test, manually tested if debug assertions still show and if replays are masked correctly.

📝 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

@codecov
Copy link

codecov bot commented Aug 26, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 89.35%. Comparing base (4acbd17) to head (9eccd6c).
⚠️ Report is 1 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #3200      +/-   ##
==========================================
+ Coverage   87.81%   89.35%   +1.53%     
==========================================
  Files         290       95     -195     
  Lines        9983     3390    -6593     
==========================================
- Hits         8767     3029    -5738     
+ Misses       1216      361     -855     

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

@github-actions
Copy link
Contributor

github-actions bot commented Aug 26, 2025

iOS Performance metrics 🚀

  Plain With Sentry Diff
Startup time 1277.38 ms 1274.04 ms -3.33 ms
Size 5.53 MiB 6.00 MiB 479.94 KiB

Baseline results on branch: main

Startup times

Revision Plain With Sentry Diff
793f4dc 1262.50 ms 1282.35 ms 19.85 ms
7cfee3b 1260.90 ms 1273.14 ms 12.24 ms
32914d8 1275.47 ms 1285.20 ms 9.73 ms
575ebaa 1262.20 ms 1274.24 ms 12.04 ms
c8596a6 1234.11 ms 1241.19 ms 7.08 ms
de377fd 1252.28 ms 1254.76 ms 2.48 ms
b6c8720 1252.65 ms 1266.61 ms 13.96 ms
79f6b41 1269.33 ms 1279.71 ms 10.38 ms
cc4e375 1253.06 ms 1263.81 ms 10.75 ms
c26ed0a 1244.11 ms 1263.85 ms 19.75 ms

App size

Revision Plain With Sentry Diff
793f4dc 7.86 MiB 9.44 MiB 1.58 MiB
7cfee3b 20.70 MiB 22.46 MiB 1.75 MiB
32914d8 7.86 MiB 9.44 MiB 1.58 MiB
575ebaa 7.86 MiB 9.44 MiB 1.58 MiB
c8596a6 7.86 MiB 9.44 MiB 1.58 MiB
de377fd 20.71 MiB 22.43 MiB 1.73 MiB
b6c8720 7.86 MiB 9.44 MiB 1.58 MiB
79f6b41 7.86 MiB 9.44 MiB 1.58 MiB
cc4e375 7.86 MiB 9.44 MiB 1.58 MiB
c26ed0a 5.53 MiB 5.97 MiB 453.76 KiB

Previous results on branch: replay/ignore-inherited-widget-log

Startup times

Revision Plain With Sentry Diff
7275c61 1266.73 ms 1267.96 ms 1.22 ms
37d4a48 1259.73 ms 1261.47 ms 1.73 ms

App size

Revision Plain With Sentry Diff
7275c61 5.53 MiB 5.96 MiB 444.30 KiB
37d4a48 5.53 MiB 5.96 MiB 444.32 KiB

@github-actions
Copy link
Contributor

github-actions bot commented Aug 26, 2025

Android Performance metrics 🚀

  Plain With Sentry Diff
Startup time 456.41 ms 463.92 ms 7.50 ms
Size 13.93 MiB 15.00 MiB 1.06 MiB

Baseline results on branch: main

Startup times

Revision Plain With Sentry Diff
e45c0e1 447.29 ms 558.33 ms 111.04 ms
8825ed8 447.65 ms 456.90 ms 9.25 ms
7cfee3b 498.78 ms 516.98 ms 18.20 ms
575ebaa 478.00 ms 585.76 ms 107.76 ms
192b44c 472.26 ms 477.34 ms 5.08 ms
eca355d 485.50 ms 569.85 ms 84.35 ms
c8596a6 474.00 ms 492.96 ms 18.96 ms
c1e775e 482.36 ms 608.98 ms 126.62 ms
0929dbf 462.82 ms 492.76 ms 29.94 ms
9b99523 456.91 ms 490.55 ms 33.64 ms

App size

Revision Plain With Sentry Diff
e45c0e1 6.54 MiB 7.70 MiB 1.16 MiB
8825ed8 13.93 MiB 14.93 MiB 1.00 MiB
7cfee3b 6.54 MiB 7.70 MiB 1.17 MiB
575ebaa 6.54 MiB 7.69 MiB 1.15 MiB
192b44c 13.93 MiB 14.93 MiB 1.00 MiB
eca355d 6.54 MiB 7.70 MiB 1.16 MiB
c8596a6 6.54 MiB 7.53 MiB 1015.27 KiB
c1e775e 6.54 MiB 7.70 MiB 1.17 MiB
0929dbf 6.54 MiB 7.70 MiB 1.17 MiB
9b99523 6.54 MiB 7.69 MiB 1.15 MiB

Previous results on branch: replay/ignore-inherited-widget-log

Startup times

Revision Plain With Sentry Diff
7275c61 452.00 ms 493.87 ms 41.87 ms
37d4a48 498.19 ms 498.43 ms 0.24 ms

App size

Revision Plain With Sentry Diff
7275c61 13.93 MiB 14.93 MiB 1.00 MiB
37d4a48 13.93 MiB 14.93 MiB 1.00 MiB

@buenaflor buenaflor marked this pull request as ready for review September 4, 2025 14:21
@buenaflor buenaflor merged commit fd88186 into main Sep 4, 2025
73 of 75 checks passed
@buenaflor buenaflor deleted the replay/ignore-inherited-widget-log branch September 4, 2025 15:34
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.

When session replay is enabled, the SDK complains about InheritedWidgets that might contain sensitive data

3 participants