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

Don't send context for non-sampled transactions #593

Merged
merged 1 commit into from
Jul 24, 2019

Conversation

axw
Copy link
Member

@axw axw commented Jul 19, 2019

Fix transaction encoding to drop any accumulated
context for non-sampled transactions.

We've been relying on instrumentation to not
set context for non-sampled transactions. If
some instrumentation (e.g. custom code) sets
context, it still shouldn't be sent to the
server for non-sampled transactions.

Closes #583

@codecov-io
Copy link

codecov-io commented Jul 19, 2019

Codecov Report

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

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #593      +/-   ##
==========================================
+ Coverage    87.7%   87.73%   +0.03%     
==========================================
  Files         121      121              
  Lines        7253     7255       +2     
==========================================
+ Hits         6361     6365       +4     
+ Misses        794      793       -1     
+ Partials       98       97       -1
Impacted Files Coverage Δ
modelwriter.go 96.21% <100%> (+0.05%) ⬆️
tracer.go 92% <0%> (+0.38%) ⬆️

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 05673a1...d688e94. Read the comment docs.

Fix transaction encoding to drop any accumulated
context for non-sampled transactions.

We've been relying on instrumentation to not
set context for non-sampled transactions. If
some instrumentation (e.g. custom code) sets
context, it still shouldn't be sent to the
server for non-sampled transactions.
@axw axw merged commit 83aa2bf into elastic:master Jul 24, 2019
@axw axw deleted the non-sampled-no-context branch July 24, 2019 02:57
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.

Labels/tags shouldn't be sent for non-sampled transactions
2 participants