Skip to content

Commit c63a1ee

Browse files
authored
Merge 3310a67 into c964075
2 parents c964075 + 3310a67 commit c63a1ee

26 files changed

Lines changed: 429 additions & 39 deletions

File tree

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
### Features
66

77
- Add extension for `Data` to track file I/O operations with Sentry (#4862)
8+
- Add experimental flag to use a more efficient view renderer for Session Replay (up to 5 times faster) (#4940)
89
- Send fatal app hang session updates (#4921) only when enabling the option `enableAppHangTrackingV2`.
910

1011
### Fixes

Samples/iOS-ObjectiveC/iOS-ObjectiveC/AppDelegate.m

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,10 @@ - (BOOL)application:(UIApplication *)application
3636

3737
options.experimental.enableFileManagerSwizzling
3838
= ![args containsObject:@"--disable-filemanager-swizzling"];
39+
options.sessionReplay.enableExperimentalViewRenderer
40+
= ![args containsObject:@"--disable-experimental-view-renderer"];
41+
options.sessionReplay.enableFastViewRendering
42+
= ![args containsObject:@"--disable-fast-view-renderer"];
3943

4044
options.initialScope = ^(SentryScope *scope) {
4145
[scope setTagValue:@"" forKey:@""];

Samples/iOS-Swift/iOS-Swift/SentrySDKWrapper.swift

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// swiftlint:disable file_length
1+
// swiftlint:disable file_length function_body_length
22

33
import Sentry
44
import UIKit
@@ -71,6 +71,12 @@ struct SentrySDKWrapper {
7171

7272
options.initialScope = configureInitialScope(scope:)
7373
options.configureUserFeedback = configureFeedback(config:)
74+
75+
// Experimental features
76+
options.experimental.enableFileManagerSwizzling = true
77+
options.sessionReplay.enableExperimentalViewRenderer = true
78+
// Disable the fast view renderering, because we noticed parts (like the tab bar) are not rendered correctly
79+
options.sessionReplay.enableFastViewRendering = false
7480
}
7581

7682
func configureInitialScope(scope: Scope) -> Scope {
@@ -421,4 +427,4 @@ extension SentrySDKWrapper {
421427
var enableAppLaunchProfiling: Bool { args.contains("--profile-app-launches") }
422428
}
423429

424-
// swiftlint:enable file_length
430+
// swiftlint:enable file_length function_body_length

Samples/iOS-Swift/iOS-Swift6/AppDelegate.swift

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,12 @@ class AppDelegate: UIResponder, UIApplicationDelegate {
2828
options.debug = true
2929
options.sampleRate = 1
3030
options.tracesSampleRate = 1
31+
32+
// Experimental features
33+
options.experimental.enableFileManagerSwizzling = true
34+
options.sessionReplay.enableExperimentalViewRenderer = true
35+
// Disable the fast view renderering, because we noticed parts (like the tab bar) are not rendered correctly
36+
options.sessionReplay.enableFastViewRendering = false
3137
})
3238

3339
}

Samples/iOS-Swift/iOS-SwiftClip/AppDelegate.swift

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,12 @@ class AppDelegate: UIResponder, UIApplicationDelegate {
1919
scope.injectGitInformation()
2020
return scope
2121
}
22+
23+
// Experimental features
24+
options.experimental.enableFileManagerSwizzling = true
25+
options.sessionReplay.enableExperimentalViewRenderer = true
26+
// Disable the fast view renderering, because we noticed parts (like the tab bar) are not rendered correctly
27+
options.sessionReplay.enableFastViewRendering = false
2228
}
2329

2430
return true

Samples/iOS-Swift/iOS13-Swift/AppDelegate.swift

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,12 @@ class AppDelegate: UIResponder, UIApplicationDelegate {
3636
scope.injectGitInformation()
3737
return scope
3838
}
39+
40+
// Experimental features
41+
options.experimental.enableFileManagerSwizzling = true
42+
options.sessionReplay.enableExperimentalViewRenderer = true
43+
// Disable the fast view renderering, because we noticed parts (like the tab bar) are not rendered correctly
44+
options.sessionReplay.enableFastViewRendering = false
3945
}
4046
}
4147

Samples/iOS-SwiftUI/iOS-SwiftUI/SwiftUIApp.swift

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,12 @@ struct SwiftUIApp: App {
1515
scope.injectGitInformation()
1616
return scope
1717
}
18+
19+
// Experimental features
20+
options.experimental.enableFileManagerSwizzling = true
21+
options.sessionReplay.enableExperimentalViewRenderer = true
22+
// Disable the fast view renderering, because we noticed parts (like the tab bar) are not rendered correctly
23+
options.sessionReplay.enableFastViewRendering = false
1824
}
1925
}
2026

Samples/iOS15-SwiftUI/iOS15-SwiftUI/App.swift

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,12 @@ struct SwiftUIApp: App {
99
options.debug = true
1010
options.tracesSampleRate = 1.0
1111
options.profilesSampleRate = 1.0
12+
13+
// Experimental features
1214
options.experimental.enableFileManagerSwizzling = true
15+
options.sessionReplay.enableExperimentalViewRenderer = true
16+
// Disable the fast view renderering, because we noticed parts (like the tab bar) are not rendered correctly
17+
options.sessionReplay.enableFastViewRendering = false
1318
}
1419
}
1520

Samples/macOS-Swift/macOS-Swift/AppDelegate.swift

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,8 @@ class AppDelegate: NSObject, NSApplicationDelegate {
3737
}
3838

3939
options.experimental.enableFileManagerSwizzling = !args.contains("--disable-filemanager-swizzling")
40+
options.sessionReplay.enableExperimentalViewRenderer = !args.contains("--disable-experimental-view-renderer")
41+
options.sessionReplay.enableFastViewRendering = !args.contains("--disable-fast-view-renderer")
4042
}
4143
}
4244

Samples/tvOS-Swift/tvOS-SBSwift/AppDelegate.swift

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,11 @@ class AppDelegate: UIResponder, UIApplicationDelegate {
1313
// Sampling 100% - In Production you probably want to adjust this
1414
options.tracesSampleRate = 1.0
1515

16+
// Experimental features
1617
options.experimental.enableFileManagerSwizzling = true
18+
options.sessionReplay.enableExperimentalViewRenderer = true
19+
// Disable the fast view renderering, because we noticed parts (like the tab bar) are not rendered correctly
20+
options.sessionReplay.enableFastViewRendering = false
1721
}
1822

1923
return true

0 commit comments

Comments
 (0)