Skip to content
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

module/apmhttp: end client span on body closure #289

Merged
merged 1 commit into from Oct 31, 2018

Conversation

axw
Copy link
Member

@axw axw commented Oct 29, 2018

Don't end HTTP client spans as soon as the response
headers have been received, but rather when the
response body has been closed or EOF received.

Closes #287

@codecov-io
Copy link

codecov-io commented Oct 29, 2018

Codecov Report

Merging #289 into master will increase coverage by 0.03%.
The diff coverage is 100%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #289      +/-   ##
==========================================
+ Coverage   80.72%   80.75%   +0.03%     
==========================================
  Files          96       96              
  Lines        5592     5612      +20     
==========================================
+ Hits         4514     4532      +18     
- Misses        824      825       +1     
- Partials      254      255       +1
Impacted Files Coverage Δ
module/apmhttp/client.go 82.53% <100%> (+8.12%) ⬆️
tracer.go 84.23% <0%> (-0.46%) ⬇️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update d17ddd2...6d37ee2. Read the comment docs.

@axw axw force-pushed the apmhttp-client-closebody-endspan branch from 6d388f7 to 81e161a Compare October 30, 2018 08:30
Don't end HTTP client spans as soon as the response
headers have been received, but rather when the
response body has been closed or EOF received.
@axw axw force-pushed the apmhttp-client-closebody-endspan branch from 81e161a to 6d37ee2 Compare October 30, 2018 09:33
@axw axw merged commit 1e3afe4 into elastic:master Oct 31, 2018
@axw axw deleted the apmhttp-client-closebody-endspan branch October 31, 2018 02:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

module/apmhttp: close client span after receiving response body
2 participants