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

Report error causes #638

Merged
merged 3 commits into from
Sep 26, 2019
Merged

Report error causes #638

merged 3 commits into from
Sep 26, 2019

Conversation

axw
Copy link
Member

@axw axw commented Sep 24, 2019

We will now report complete error trees in
error.exception: the top-most exception is
the provided error, and any cause/wrapped
error will be reported in an array of causes
to the server.

We will only report at most 50 errors in a tree,
and we break cycles by just ignoring references
to previously seen errors.

The error culprit will now be calculated by
traversing the tree depth-first, returning
the first non-library frame's function name.
This will resolve issues such as #632, where
an error with a complete stack trace is
wrapped by one with only a limited stack trace.

Closes #423

We will now report complete error trees in
error.exception: the top-most exception is
the provided error, and any cause/wrapped
error will be reported in an array of causes
to the server.

The error culprit will now be calculated by
traversing the tree depth-first, returning
the first non-library frame's function name.
This will resolve issues such as elastic#632, where
an error with a complete stack trace is
wrapped by one with only a limited stack trace.
@codecov-io
Copy link

codecov-io commented Sep 25, 2019

Codecov Report

Merging #638 into master will increase coverage by 0.05%.
The diff coverage is 96.33%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #638      +/-   ##
==========================================
+ Coverage   87.75%   87.81%   +0.05%     
==========================================
  Files         123      123              
  Lines        7522     7582      +60     
==========================================
+ Hits         6601     6658      +57     
- Misses        817      819       +2     
- Partials      104      105       +1
Impacted Files Coverage Δ
modelwriter.go 96.75% <100%> (+0.54%) ⬆️
model/marshal_fastjson.go 77.1% <66.66%> (-0.11%) ⬇️
error.go 95.78% <98.27%> (-0.34%) ⬇️
tracer.go 89.69% <0%> (+0.32%) ⬆️

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 f292236...b2b293b. Read the comment docs.

@axw
Copy link
Member Author

axw commented Sep 25, 2019

jenkins run the tests please

@axw axw merged commit 3e10f18 into elastic:master Sep 26, 2019
@axw axw deleted the chained-errors branch September 26, 2019 07:13
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.

Report complete error chains
2 participants