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/apmsql: fix error capture #160

Merged
merged 1 commit into from
Aug 1, 2018

Conversation

axw
Copy link
Member

@axw axw commented Aug 1, 2018

We were passing the (initial nil) error value
to finishSpan by mistake. Pass a pointer to the
result error var instead, to capture the final
value.

Fixes #159

We were passing the (initial nil) error value
to finishSpan by mistake. Pass a pointer to the
result error var instead, to capture the final
value.

Fixes elastic#159
@axw axw force-pushed the apmsql-defer-captureerror branch from f14ee33 to 11857d7 Compare August 1, 2018 03:43
@codecov-io
Copy link

codecov-io commented Aug 1, 2018

Codecov Report

Merging #160 into master will not change coverage.
The diff coverage is 88.88%.

Impacted file tree graph

@@           Coverage Diff           @@
##           master     #160   +/-   ##
=======================================
  Coverage   77.17%   77.17%           
=======================================
  Files          70       70           
  Lines        3992     3992           
=======================================
  Hits         3081     3081           
  Misses        695      695           
  Partials      216      216
Impacted Files Coverage Δ
module/apmsql/stmt.go 58.13% <100%> (ø) ⬆️
module/apmsql/conn.go 59.78% <85.71%> (+2.17%) ⬆️
tracer.go 84.92% <0%> (-0.58%) ⬇️

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 2717dc2...11857d7. Read the comment docs.

@axw axw merged commit 1880f50 into elastic:master Aug 1, 2018
@axw axw deleted the apmsql-defer-captureerror branch August 1, 2018 04:03
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.

2 participants