File tree 4 files changed +24
-0
lines changed
src/Sentry/Platforms/Cocoa
4 files changed +24
-0
lines changed Original file line number Diff line number Diff line change 2
2
3
3
## 5.0.1
4
4
5
+ ### Features
6
+
7
+ - .NET on iOS: Add experimental EnableAppHangTrackingV2 configuration flag to the options binding SDK ([ #3877 ] ( https://github.com/getsentry/sentry-dotnet/pull/3877 ) )
8
+
5
9
### Fixes
6
10
7
11
- .NET Mobile: Disable and made obsolete the iOS Watchdog termination feature which is based on heuristics that don't work in .NET ([ #3867 ] ( https://github.com/getsentry/sentry-dotnet/pull/3867 ) )
Original file line number Diff line number Diff line change @@ -14,6 +14,7 @@ public class NativeOptions
14
14
public TimeSpan ? AppHangTimeoutInterval { get ; set ; }
15
15
public TimeSpan ? IdleTimeout { get ; set ; }
16
16
public bool ? EnableAppHangTracking { get ; set ; }
17
+ public bool ? EnableAppHangTrackingV2 { get ; set ; }
17
18
public bool ? EnableAutoBreadcrumbTracking { get ; set ; }
18
19
public bool ? EnableAutoPerformanceTracing { get ; set ; }
19
20
public bool ? EnableCoreDataTracing { get ; set ; }
@@ -32,6 +33,7 @@ public void ApplyTo(SentryOptions.NativeOptions options)
32
33
options . AppHangTimeoutInterval = AppHangTimeoutInterval ?? options . AppHangTimeoutInterval ;
33
34
options . IdleTimeout = IdleTimeout ?? options . IdleTimeout ;
34
35
options . EnableAppHangTracking = EnableAppHangTracking ?? options . EnableAppHangTracking ;
36
+ options . EnableAppHangTrackingV2 = EnableAppHangTrackingV2 ?? options . EnableAppHangTrackingV2 ;
35
37
options . EnableAutoBreadcrumbTracking = EnableAutoBreadcrumbTracking ?? options . EnableAutoBreadcrumbTracking ;
36
38
options . EnableAutoPerformanceTracing = EnableAutoPerformanceTracing ?? options . EnableAutoPerformanceTracing ;
37
39
options . EnableCoreDataTracing = EnableCoreDataTracing ?? options . EnableCoreDataTracing ;
Original file line number Diff line number Diff line change @@ -68,6 +68,23 @@ internal NativeOptions(SentryOptions options)
68
68
/// </remarks>
69
69
public bool EnableAppHangTracking { get ; set ; } = true ;
70
70
71
+ /// <summary>
72
+ /// IMPORTANT: This feature is experimental and may have bugs.
73
+ /// <br/>
74
+ /// As of version 8.39.0-beta.1 of the sentry-cocoa SDK, you can enable AppHangsV2, which is available on iOS and tvOS.
75
+ /// The main difference is that AppHangsV2 differentiates between fully-blocking and non-fully-blocking
76
+ /// app hangs, which you might choose to ignore. A fully-blocking app hang is when the main thread is stuck
77
+ /// completely, and the app can't render a single frame.
78
+ /// A non-fully-blocking app hang is when the app appears stuck to the user, but can still render a few frames.
79
+ /// Fully-blocking app hangs are more actionable because the stacktrace shows the exact blocking location on
80
+ /// the main thread. Non-fully-blocking app hangs can have a stacktrace that doesn't highlight the exact
81
+ /// blocking location, since the main thread isn't completely blocked.
82
+ /// </summary>
83
+ /// <remarks>
84
+ /// See https://docs.sentry.io/platforms/apple/configuration/app-hangs/#app-hangs-v2
85
+ /// </remarks>
86
+ public bool EnableAppHangTrackingV2 { get ; set ; } = true ;
87
+
71
88
/// <summary>
72
89
/// When enabled, the SDK adds breadcrumbs for various system events.
73
90
/// The default value is <c>true</c> (enabled).
Original file line number Diff line number Diff line change @@ -121,6 +121,7 @@ private static void InitSentryCocoaSdk(SentryOptions options)
121
121
nativeOptions . IdleTimeout = options . Native . IdleTimeout . TotalSeconds ;
122
122
nativeOptions . Dist = options . Distribution ;
123
123
nativeOptions . EnableAppHangTracking = options . Native . EnableAppHangTracking ;
124
+ nativeOptions . EnableAppHangTrackingV2 = options . Native . EnableAppHangTrackingV2 ;
124
125
nativeOptions . EnableAutoBreadcrumbTracking = options . Native . EnableAutoBreadcrumbTracking ;
125
126
nativeOptions . EnableAutoPerformanceTracing = options . Native . EnableAutoPerformanceTracing ;
126
127
nativeOptions . EnableCoreDataTracing = options . Native . EnableCoreDataTracing ;
You can’t perform that action at this time.
0 commit comments