Skip to content

feat(network-details): Add experimental flag and changelog#7854

Merged
philprime merged 3 commits intomainfrom
feat/network-details-changelog
Apr 30, 2026
Merged

feat(network-details): Add experimental flag and changelog#7854
philprime merged 3 commits intomainfrom
feat/network-details-changelog

Conversation

@itaybre
Copy link
Copy Markdown
Contributor

@itaybre itaybre commented Apr 29, 2026

Summary

Test plan

  • Existing network detail swizzling tests updated to set the experimental flag
  • New test verifying data is NOT captured when experimental flag is disabled
  • SentryNetworkTrackerTests updated to set experimental flag for network detail assertions
  • Verify make build-ios passes
  • Verify make test-ios passes

…k details capture

Gate Session Replay network detail capture behind
options.experimental.enableReplayNetworkDetailsCapturing to ensure
users explicitly opt in to this new feature.
@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented Apr 29, 2026

Messages
📖 Do not forget to update Sentry-docs with your feature once the pull request gets approved.

Generated by 🚫 dangerJS against 34fca47

@itaybre itaybre added the ready-to-merge Use this label to trigger all PR workflows label Apr 29, 2026
@sentry
Copy link
Copy Markdown

sentry Bot commented Apr 29, 2026

📲 Install Builds

iOS

🔗 App Name App ID Version Configuration
SDK-Size io.sentry.sample.SDK-Size 9.11.0 (1) Release

⚙️ sentry-cocoa Build Distribution Settings

@codecov
Copy link
Copy Markdown

codecov Bot commented Apr 29, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 85.482%. Comparing base (c5c7a29) to head (34fca47).
⚠️ Report is 1 commits behind head on main.
✅ All tests successful. No failed tests found.

Additional details and impacted files

Impacted file tree graph

@@              Coverage Diff              @@
##              main     #7854       +/-   ##
=============================================
- Coverage   85.493%   85.482%   -0.012%     
=============================================
  Files          487       487               
  Lines        29642     29647        +5     
  Branches     12844     12862       +18     
=============================================
+ Hits         25342     25343        +1     
- Misses        4249      4252        +3     
- Partials        51        52        +1     
Files with missing lines Coverage Δ
Sources/Sentry/SentryNetworkTracker.m 97.759% <100.000%> (-0.270%) ⬇️
...es/Swift/Helper/SentryEnabledFeaturesBuilder.swift 100.000% <100.000%> (ø)
...nce/Network/SentryNetworkTrackingIntegration.swift 100.000% <100.000%> (ø)
...tegrations/SessionReplay/SentryReplayOptions.swift 97.175% <100.000%> (-0.565%) ⬇️
Sources/Swift/SentryExperimentalOptions.swift 75.000% <100.000%> (+8.333%) ⬆️

... and 3 files with indirect coverage changes


Continue to review full report in Codecov by Sentry.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update c5c7a29...34fca47. Read the comment docs.

@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented Apr 29, 2026

Performance metrics 🚀

  Plain With Sentry Diff
Startup time 1222.85 ms 1259.65 ms 36.80 ms
Size 24.14 KiB 1.15 MiB 1.13 MiB

Baseline results on branch: main

Startup times

Revision Plain With Sentry Diff
adef457 1229.45 ms 1262.67 ms 33.22 ms
6c524d8 1217.83 ms 1254.02 ms 36.20 ms
e44b6f8 1225.98 ms 1249.20 ms 23.23 ms
65c13c5 1234.47 ms 1263.10 ms 28.63 ms
1c5ecda 1219.35 ms 1253.76 ms 34.41 ms
ae8cece 1216.83 ms 1251.37 ms 34.55 ms
29d546e 1224.06 ms 1257.05 ms 32.98 ms
ce1ec47 1212.60 ms 1247.61 ms 35.02 ms
787537a 1218.35 ms 1251.72 ms 33.38 ms
71e6611 1213.27 ms 1242.25 ms 28.98 ms

App size

Revision Plain With Sentry Diff
adef457 24.14 KiB 1.15 MiB 1.13 MiB
6c524d8 24.14 KiB 1.15 MiB 1.12 MiB
e44b6f8 24.14 KiB 1.15 MiB 1.13 MiB
65c13c5 24.14 KiB 1.15 MiB 1.12 MiB
1c5ecda 24.14 KiB 1.15 MiB 1.12 MiB
ae8cece 24.14 KiB 1.15 MiB 1.13 MiB
29d546e 24.14 KiB 1.15 MiB 1.13 MiB
ce1ec47 24.14 KiB 1.15 MiB 1.13 MiB
787537a 24.14 KiB 1.15 MiB 1.12 MiB
71e6611 24.14 KiB 1.15 MiB 1.12 MiB

Previous results on branch: feat/network-details-changelog

Startup times

Revision Plain With Sentry Diff
41bfc32 1213.57 ms 1251.04 ms 37.47 ms

App size

Revision Plain With Sentry Diff
41bfc32 24.14 KiB 1.15 MiB 1.13 MiB

@github-actions
Copy link
Copy Markdown
Contributor

🚨 Detected changes in high risk code 🚨

High-risk code can easily blow up and is hard to test. We had severe bugs in the past. Be extra careful when changing these files, and have an extra careful look at these:

  • Sources/Sentry/SentryNetworkTracker.m

Copy link
Copy Markdown
Member

@philprime philprime left a comment

Choose a reason for hiding this comment

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

LGTM

@philprime philprime merged commit 994f7a3 into main Apr 30, 2026
207 checks passed
@philprime philprime deleted the feat/network-details-changelog branch April 30, 2026 07:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ready-to-merge Use this label to trigger all PR workflows

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants