-
Notifications
You must be signed in to change notification settings - Fork 3
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
fix(TraceableHttpClient): span finishes too early #105
fix(TraceableHttpClient): span finishes too early #105
Conversation
@gaelreyrol Hello! New issue was resolved! I've made a number of improvements to release the package in a private repository at my company. I'm ready to quickly move them to your repository. Working together we can release a stable release. |
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #105 +/- ##
============================================
+ Coverage 88.16% 88.51% +0.34%
+ Complexity 635 633 -2
============================================
Files 115 115
Lines 2620 2612 -8
============================================
+ Hits 2310 2312 +2
+ Misses 310 300 -10
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
Hi @Kaspiman! Good catch, I remember that the assertions in the tests were a bit strange but I didn't have the time to dive into it. I am not sure why the tests does not cover your changes, are you able to break in the catch to see if the code block is executed in the testException case ? Thanks again for your work! |
The exception |
Indeed, it's been a while since I worked on this project, I need catch up. |
Signed-off-by: Plakhotnikov Vladimir <v.plahotnikov@yclients.tech>
Signed-off-by: Plakhotnikov Vladimir <v.plahotnikov@yclients.tech>
d0ad054
to
98d0b84
Compare
The client works asynchronously. Due to the
finally
construction, the span is immediately closed, without reflecting the actual result of the request.TraceableResponse
class already finished span correctly.