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
DioError extractor extracts wrong stacktrace #1322
Comments
@kuhnroyal PR incoming? 😄 |
Yea sure but I think we need to solve the dio problem first, otherwise the |
@denrase can you take a look? |
From my understanding, the |
I think we are missing the original stacktrace here https://github.com/getsentry/sentry-dart/blob/v7.0.0/dio/lib/src/failed_request_interceptor.dart#L42 |
Hacked up a basic idea that should solve this, didn't test it yet. |
In this case, the |
I have tested this change excessively over the last few days and the whole update from Sentry 6.x/Dio 4.x to Sentry 7.0/Dio 5.0 is a big step back regarding traceability of the
DioError
. This is in big part due to changes indio
which removed the whole source stacktrace. But due to theDioErrorExtractor
there are now also cases where the inner stacktrace ofDioError.error.stacktrace
is completely missing in the event.I think the
DioError.stacktrace
needs to be added by default, as it was the case in6.x
and only the inner cause error/stacktrace should be extracted via theDioErrorExtractor
.Something like:
Originally posted by @kuhnroyal in #1282 (comment)
The text was updated successfully, but these errors were encountered: