-
-
Notifications
You must be signed in to change notification settings - Fork 213
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Sentry support for AvaloniaUI #2614
Comments
Hey @manuc66, thanks for reaching out and you're right, we don't yet have anything built specifically to support Avalonia. Realistically, we won't have the bandwidth to build an official integration for this anytime soon. I can try to help you work through the issues you've run into. As long as Avalonia has some kind of global exception handler, you could probably get some basic exception capturing going on. There's quite a lot of complexity in instrumenting multi platform applications properly however. For our MAUI integration, we had to create bindings into Sentry's Android and iOS SDKs, to properly instrument the native code that gets produced when deploying to these platforms. That could maybe serve as an example of how this might be done in frameworks like Avalonia. |
It should work with the core Here's how we document for WPF: https://docs.sentry.io/platforms/dotnet/guides/wpf/ (for WPF there was also #1036 ) That said, what would a specific |
Taken from the Avalonia docs |
👍 |
@jamescrosswell Does that mean AvaloniaUI apps should add Maui or Android/iOS packages specifically so that native code crashes will be handled properly? My Avalonia app runs on Windows/Linux/MacOS as will as Android and iOS. Do I need to add several packages with |
@AArnott you definitely wouldn't use the Maui package as that depends on I'm not sure how you would use the Android, iOS and Native bindings from AvaloniaUI. @bruno-garcia or @vaind might be able to answer as they were more involved in the Maui and Native integrations. |
The core Sentry package handles the import of the bindings based on the targeted platform here sentry-dotnet/src/Sentry/Sentry.csproj Lines 21 to 25 in 5152a3c
If AvaloniaUI has some different |
That's very useful. I don't target maccatalyst explicitly. I just run the |
With the macos support of .NET we have Native AOT support, with native crashes included. |
Problem Statement
I am attempting to integrate Sentry into my AvaloniaUI application for error monitoring and reporting. However, I have encountered challenges as there doesn't seem to be official support or guidance for using the Sentry .NET SDK with AvaloniaUI applications.
Solution Brainstorm
No response
The text was updated successfully, but these errors were encountered: