From 900697b4f6777cc145d83fc8812dab12bc68702a Mon Sep 17 00:00:00 2001 From: Matt Johnson-Pint Date: Thu, 18 Aug 2022 23:13:32 -0700 Subject: [PATCH] Apply WinUI 3 exception handler in Sentry core (#1863) --- CHANGELOG.md | 1 + samples/Sentry.Samples.Maui/MainPage.xaml | 7 + samples/Sentry.Samples.Maui/MainPage.xaml.cs | 5 + .../Internal/SentryMauiInitializer.cs | 76 +--------- .../WinUIUnhandledExceptionIntegration.cs | 135 ++++++++++++++++++ src/Sentry/SentryOptions.cs | 7 + 6 files changed, 156 insertions(+), 75 deletions(-) create mode 100644 src/Sentry/Integrations/WinUIUnhandledExceptionIntegration.cs diff --git a/CHANGELOG.md b/CHANGELOG.md index 5732b5040a..24abb73f56 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -13,6 +13,7 @@ - Add `Distribution` properties ([#1851](https://github.com/getsentry/sentry-dotnet/pull/1851)) - Add and configure options for the iOS SDK ([#1849](https://github.com/getsentry/sentry-dotnet/pull/1849)) - Set default `Release` and `Distribution` for iOS and Android ([#1856](https://github.com/getsentry/sentry-dotnet/pull/1856)) +- Apply WinUI 3 exception handler in Sentry core ([#1863](https://github.com/getsentry/sentry-dotnet/pull/1863)) ### Fixes diff --git a/samples/Sentry.Samples.Maui/MainPage.xaml b/samples/Sentry.Samples.Maui/MainPage.xaml index 24c1b19ec7..d1519f610c 100644 --- a/samples/Sentry.Samples.Maui/MainPage.xaml +++ b/samples/Sentry.Samples.Maui/MainPage.xaml @@ -49,6 +49,13 @@ Clicked="OnUnhandledExceptionClicked" HorizontalOptions="Center" /> +