-
Notifications
You must be signed in to change notification settings - Fork 289
Conversation
Codecov Report
@@ Coverage Diff @@
## master #328 +/- ##
==========================================
+ Coverage 87.14% 87.21% +0.07%
==========================================
Files 54 54
Lines 2988 2989 +1
==========================================
+ Hits 2604 2607 +3
+ Misses 272 271 -1
+ Partials 112 111 -1
Continue to review full report at Codecov.
|
sampler.go
Outdated
@@ -511,6 +511,7 @@ func (s *RemotelyControlledSampler) updateSampler() { | |||
res, err := s.manager.GetSamplingStrategy(s.serviceName) | |||
if err != nil { | |||
s.metrics.SamplerQueryFailure.Inc(1) | |||
s.logger.Infof("Unable to query sampling strategy. Got error: %v", err) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
simplify the message: s.logger.Infof("Unable to query sampling strategy: %v", err)
can you add a unit test?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
e.g.
jaeger-client-go/reporter_test.go
Line 97 in f7e0d47
if s.logger.String() == expectedLogs { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
preferably use string.Contains()
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done :)
Signed-off-by: Goutham Veeramachaneni <[email protected]>
Thanks! |
Fixes #327