Skip to content

Commit a75e679

Browse files
committed
feat(network-details): [swizzle] Gate swizzling based on SDKOptions#networkDetailHasUrls
1 parent 5c21f52 commit a75e679

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

Sources/Swift/Integrations/Performance/Network/SentryNetworkTrackingIntegration.swift

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,12 @@ final class SentryNetworkTrackingIntegration<Dependencies: NetworkTrackerProvide
4141
super.init()
4242

4343
SentrySwizzleWrapperHelper.swizzleURLSessionTask(networkTracker)
44+
45+
#if os(iOS) || os(tvOS)
46+
if options.sessionReplay.networkDetailHasUrls {
47+
SentrySwizzleWrapperHelper.swizzleURLSessionDataTasks(forResponseCapture: networkTracker)
48+
}
49+
#endif
4450
}
4551

4652
func uninstall() {

0 commit comments

Comments
 (0)