-
-
Notifications
You must be signed in to change notification settings - Fork 435
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
SentryOkHttpEvent report exceptions only on the call root span #2961
Conversation
Performance metrics 🚀
|
This is not going to work with errors captured by the interceptor, correct @romtsn @markushi ? |
client errors are now reported by the SentryOkHttpEventListener instead of SentryOkHttpInterceptor, if available
Codecov ReportAttention:
... and 22 files with indirect coverage changes 📢 Thoughts on this report? Let us know!. |
@stefanosiano have you got a link to a sample event after this change? |
yep. This is before (the version in master) |
Actually, the edge case happens also when using the Interceptor only, even if the EventListener collects more spans for a few more milliseconds than the Interceptor, so it's a little "worse" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
CHANGELOG.md
Outdated
@@ -6,6 +6,10 @@ | |||
|
|||
- Add `CheckInUtils.withCheckIn` which abstracts away some of the manual check-ins complexity ([#2959](https://github.com/getsentry/sentry-java/pull/2959)) | |||
|
|||
### Fixes | |||
|
|||
- SentryOkHttpEvent report exceptions only on the call root span ([#2961](https://github.com/getsentry/sentry-java/pull/2961)) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's actually HTTP errors we're catching here, how about naming it this way?
- SentryOkHttpEvent report exceptions only on the call root span ([#2961](https://github.com/getsentry/sentry-java/pull/2961)) | |
- Always attach `SentryOkHttpEvent` errors to the call root span ([#2961](https://github.com/getsentry/sentry-java/pull/2961)) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actually it's both
any exception caught by the listener is now associated to the call root span only, and the SentryHttpClientException
is also associated to the call root span only.
What about "Always attach OkHttp
errors and Http Client Errors
only to call root span"?
📜 Description
SentryOkHttpEvent now shows exceptions only on the call root span
💡 Motivation and Context
Having the expection shown in the inner spans of the http call could be confusing, as in sentry-demos/android#60
💚 How did you test it?
Unit
📝 Checklist
sendDefaultPII
is enabled.🔮 Next steps