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

Add "transaction.type" to errors #433

Merged
merged 3 commits into from
Jan 17, 2019
Merged

Conversation

axw
Copy link
Member

@axw axw commented Jan 16, 2019

Add model.ErrorTransaction.Type, which may hold the type of the transaction in which an error occurs. Update apm.CaptureError and apm.Error.SetTransaction to record the transaction type on errors associated with sampled transactions.

Closes #431

Brings in error.transaction.type, and support for
numeric and boolean tags.
Also, introduce generate.sh, as we now also need to
run go-licenser over the fastjson-generated code.
When an error is captured within a sampled
transaction, record the transaction type on
the error. The transaction type is taken at
the time the CaptureError function is called,
or when Error.SetTransaction is called.
@axw axw merged commit c3a93b0 into elastic:master Jan 17, 2019
@axw axw deleted the error-transaction-type branch January 17, 2019 01:29
@codecov-io
Copy link

Codecov Report

Merging #433 into master will increase coverage by 0.11%.
The diff coverage is 88.67%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #433      +/-   ##
==========================================
+ Coverage   80.92%   81.03%   +0.11%     
==========================================
  Files         104      104              
  Lines        6374     6396      +22     
==========================================
+ Hits         5158     5183      +25     
+ Misses        935      930       -5     
- Partials      281      283       +2
Impacted Files Coverage Δ
model/marshal.go 76.47% <ø> (ø) ⬆️
modelwriter.go 94.3% <100%> (+0.09%) ⬆️
gocontext.go 100% <100%> (ø) ⬆️
error.go 78.89% <100%> (+2.87%) ⬆️
model/marshal_fastjson.go 67.37% <60%> (-0.19%) ⬇️
tracer.go 86.33% <0%> (+0.82%) ⬆️

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 18846c7...ab532dd. Read the comment docs.

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.

None yet

2 participants