-
Notifications
You must be signed in to change notification settings - Fork 232
Fix issue where warning message is generated each time a null referen… #487
Conversation
…ce is passed Signed-off-by: Gary Brown <[email protected]>
Codecov Report
@@ Coverage Diff @@
## master #487 +/- ##
============================================
+ Coverage 88.2% 88.21% +0.01%
Complexity 498 498
============================================
Files 65 65
Lines 1857 1859 +2
Branches 241 242 +1
============================================
+ Hits 1638 1640 +2
Misses 141 141
Partials 78 78
Continue to review full report at Codecov.
|
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.
Nice catch
Signed-off-by: Gary Brown <[email protected]>
@jpkrohling Ok for me to merge once coverage is fixed? |
.withSampler(new ConstSampler(true)) | ||
.build(); | ||
|
||
JaegerSpan jaegerSpan = tracer.buildSpan("foo").asChildOf(NoopSpan.INSTANCE.context()).start(); |
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.
I think it more belongs to span test class
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
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.
actually in tracer test class there is testAsChildOfAcceptNull
but I think it more belongs here even span builder is in tracer class.
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.
sorry unclear - do you mean move the test back to the JaegerTracerTest
class?
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.
No it's fine here, there is different test in tracer test class which is similar to this tests. I think that one also belongs here
Signed-off-by: Gary Brown <[email protected]>
Signed-off-by: Gary Brown <[email protected]>
@pavolloffay Can this be merged now? |
@objectiser done |
@pavolloffay thanks |
…ce is passed
Signed-off-by: Gary Brown [email protected]
When a null reference was being added, it was creating a warning message that was intended to detect non-JaegerSpanContext implementations. The message was also misleading as it was referring to the type of the
referenceType
(string) parameter rather than thereference
.