diff --git a/CHANGELOG.md b/CHANGELOG.md index c8337bb5e0..d033d343f0 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,7 @@ ### Changes +- Fix UWP not registering exceptions (#821) @lucas-zimerman - Fix tracing middleware (#813) @Tyrrrz ## 3.0.5 diff --git a/src/Sentry/SentryOptions.cs b/src/Sentry/SentryOptions.cs index d4d3fbb525..089e618140 100644 --- a/src/Sentry/SentryOptions.cs +++ b/src/Sentry/SentryOptions.cs @@ -446,8 +446,9 @@ public double TracesSampleRate /// public SentryOptions() { - // from 3.0.0 uses Enhanced (Ben.Demystifier) by default which is a breaking change. - StackTraceMode = StackTraceMode.Enhanced; + // from 3.0.0 uses Enhanced (Ben.Demystifier) by default which is a breaking change + // unless you are using .NET Native which isn't compatible with Ben.Demystifier. + StackTraceMode = Runtime.Current.Name == ".NET Native" ? StackTraceMode.Original : StackTraceMode.Enhanced; EventProcessorsProviders = new Func>[] { () => EventProcessors ?? Enumerable.Empty()