Skip to content
This repository has been archived by the owner on May 23, 2024. It is now read-only.

Add "sampleWithoutDebugFlag" option for tracer to decide set/not set debug flag when a span is forced to be sampled #423

Merged
merged 1 commit into from
Sep 6, 2019

Conversation

guo0693
Copy link
Contributor

@guo0693 guo0693 commented Sep 4, 2019

Which problem is this PR solving?

Short description of the changes

  • Add "sampleWithoutDebugFlag" option when initialize tracer
  • Update setSamplingPriority logic to set debug flag accordingly
  • Avoid race condition update set firehose flag

reporter jaeger.Reporter
sampler jaeger.Sampler
contribObservers []jaeger.ContribObserver
observers []jaeger.Observer

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

SA1019: jaeger.Observer is deprecated: use jaeger.ContribObserver instead. (from staticcheck)

@codecov
Copy link

codecov bot commented Sep 4, 2019

Codecov Report

Merging #423 into master will increase coverage by 0.04%.
The diff coverage is 100%.

Impacted file tree graph

@@            Coverage Diff            @@
##           master    #423      +/-   ##
=========================================
+ Coverage   88.46%   88.5%   +0.04%     
=========================================
  Files          55      55              
  Lines        3111    3123      +12     
=========================================
+ Hits         2752    2764      +12     
  Misses        255     255              
  Partials      104     104
Impacted Files Coverage Δ
tracer.go 97.05% <ø> (ø) ⬆️
config/config.go 93.28% <100%> (+0.04%) ⬆️
tracer_options.go 78.12% <100%> (+1.07%) ⬆️
config/options.go 100% <100%> (ø) ⬆️
span.go 100% <100%> (ø) ⬆️

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 8b8ed66...454ba5f. Read the comment docs.

@guo0693
Copy link
Contributor Author

guo0693 commented Sep 4, 2019

@yurishkuro @vprithvi

reporter jaeger.Reporter
sampler jaeger.Sampler
contribObservers []jaeger.ContribObserver
observers []jaeger.Observer

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

SA1019: jaeger.Observer is deprecated: use jaeger.ContribObserver instead. (from staticcheck)

…debug span when a span is forced to be sampled

Signed-off-by: jung <jung@uber.com>
@yurishkuro yurishkuro merged commit 3434ad5 into jaegertracing:master Sep 6, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Make SamplingPriority configurable to set/not set debug span when a span is forced to be sampled
4 participants