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

Add debug logs #504

Merged
merged 7 commits into from
Apr 22, 2020
Merged

Conversation

vprithvi
Copy link
Contributor

@vprithvi vprithvi commented Apr 22, 2020

Part of #501

  • Log tracer and reporter closes
  • Log samplers on updates to sampling strategies. By default, these happen once a minute

Signed-off-by: Prithvi Raj p.r@uber.com

- Log tracer and reporter closes
- Log samplers on updates to sampling strategies

Signed-off-by: Prithvi Raj <p.r@uber.com>
@@ -200,6 +200,7 @@ func (s *RemotelyControlledSampler) updateSamplerViaUpdaters(strategy interface{
return err
}
if sampler != nil {
s.logger.Debugf("sampler updated: %+v", sampler)
Copy link
Contributor Author

Choose a reason for hiding this comment

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

The logger is a debug logger - the stringer on sampler won't be called unless the log level is set to debug. The default poll interval is 1 minute.

sampler.go Outdated Show resolved Hide resolved
Signed-off-by: Prithvi Raj <p.r@uber.com>
Signed-off-by: Prithvi Raj <p.r@uber.com>
Signed-off-by: Prithvi Raj <p.r@uber.com>
@codecov
Copy link

codecov bot commented Apr 22, 2020

Codecov Report

Merging #504 into master will increase coverage by 0.05%.
The diff coverage is 100.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #504      +/-   ##
==========================================
+ Coverage   88.68%   88.73%   +0.05%     
==========================================
  Files          60       60              
  Lines        3764     3782      +18     
==========================================
+ Hits         3338     3356      +18     
  Misses        309      309              
  Partials      117      117              
Impacted Files Coverage Δ
reporter.go 100.00% <100.00%> (ø)
sampler.go 94.28% <100.00%> (+0.40%) ⬆️
sampler_remote.go 82.48% <100.00%> (+0.12%) ⬆️
tracer.go 95.90% <100.00%> (+0.01%) ⬆️

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 5b28adb...9e2577a. Read the comment docs.

@yurishkuro
Copy link
Member

Please add unit tests invoking the new ToString method to increase code coverage.

Signed-off-by: Prithvi Raj <p.r@uber.com>
Signed-off-by: Prithvi Raj <p.r@uber.com>
Signed-off-by: Prithvi Raj <p.r@uber.com>
@yurishkuro yurishkuro merged commit 8e7ec7b into jaegertracing:master Apr 22, 2020
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.

None yet

2 participants