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

Update Sampler API #243

Merged
merged 1 commit into from
Sep 28, 2018
Merged

Update Sampler API #243

merged 1 commit into from
Sep 28, 2018

Conversation

axw
Copy link
Member

@axw axw commented Sep 28, 2018

Sampler now accepts a TraceContext, rather than
Transaction. NewRatioSampler returns Sampler,
and the concrete type has been unexported.
Additionally, the ratio sampler now bases its
decision on the span (transaction) ID, rather
than computing another random number. This
also avoids synchronisation on an RNG mutex.

Sampler now accepts a TraceContext, rather than
Transaction. NewRatioSampler returns Sampler,
and the concrete type has been unexported.
Additionally, the ratio sampler now bases its
decision on the span (transaction) ID, rather
than computing another random number. This
also avoids synchronisation on an RNG mutex.
@codecov-io
Copy link

Codecov Report

Merging #243 into v2 will increase coverage by 0.03%.
The diff coverage is 100%.

Impacted file tree graph

@@            Coverage Diff            @@
##              v2     #243      +/-   ##
=========================================
+ Coverage   80.5%   80.53%   +0.03%     
=========================================
  Files         91       91              
  Lines       5376     5375       -1     
=========================================
+ Hits        4328     4329       +1     
+ Misses       838      837       -1     
+ Partials     210      209       -1
Impacted Files Coverage Δ
sampler.go 81.81% <100%> (ø) ⬆️
env.go 73.17% <100%> (-0.33%) ⬇️
transaction.go 97.22% <100%> (ø) ⬆️
tracer.go 83.48% <0%> (+0.44%) ⬆️

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 d310416...f1d0aa5. Read the comment docs.

@axw axw merged commit 6110696 into elastic:v2 Sep 28, 2018
@axw axw deleted the v2-sampler-tracecontext branch September 28, 2018 03:43
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