-
-
Notifications
You must be signed in to change notification settings - Fork 206
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
Add managed attachments to native events #3545
Comments
The issue is also reproduced when |
I think this is similar to: In both cases, Native crash reporting essentially skips all the .NET SDK processing. |
I suspect the @bitsandfoxes do you know what the expected behaviour is here?
|
Possibly relates to this (so maybe something that hasn't yet been implemented): sentry-dotnet/src/Sentry/Platforms/Android/Extensions/AttachmentExtensions.cs Lines 5 to 22 in 5fab09e
|
I might have gotten that wrong but I was under the impression that the .NET SDK would be responsible for managed code and the Java SDK would provide native support. Having the same exception reported via the |
That's true, but you can add things to the scope (including attachments) that you want/expect to be sent with both Managed and Native exceptions. This hasn't been implemented for Attachments on Android yet. |
Package
Sentry
.NET Flavor
.NET
.NET Version
8.0.303
OS
Android
SDK Version
4.10.1
Self-Hosted Sentry Version
No response
Steps to Reproduce
SentrySdk.CauseCrash()
with different parametersExpected Result
All reported events should have
logcat.log
attachment with logcat logs and customfile.txt
file attachment.Actual Result
CrashType.Native
is reported with mechanismsignalhandler
and contains no attachments;CrashType.JavaBackgroundThread
is reported twice: one with mechanismUncaughtExceptionHandler
and contains no attachments, and another with mechanismAppDomain.UnhandledException
and contains both attachments;CrashType.Managed
,CrashType.ManagedBackgroundThread
,CrashType.Java
) are reported with mechanismAppDomain.UnhandledException
and contain both attachments.This issue might be related to #3461
Reproduction sample: SampleProject.zip
The text was updated successfully, but these errors were encountered: