-
Notifications
You must be signed in to change notification settings - Fork 231
Avoid warning if traceparent not present #698
Conversation
Codecov Report
@@ Coverage Diff @@
## master #698 +/- ##
============================================
- Coverage 89.70% 89.53% -0.18%
+ Complexity 587 586 -1
============================================
Files 70 70
Lines 2157 2159 +2
Branches 281 282 +1
============================================
- Hits 1935 1933 -2
- Misses 134 136 +2
- Partials 88 90 +2
Continue to review full report at Codecov.
|
TextMapCodec.extract() return null with no warning if SPAN_CONTEXT_KEY not present, TraceContextCodec should align with it. Signed-off-by: Yanming Zhou <zhouyanming@gmail.com>
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.
please add a unit test
It's already covered by unit test. |
Yes, but you are adding new behavior and a new expectation that no logs are produced on missing traceparent. That's not covered by the existing unit test. |
@quaff could you please fix the CI? |
Signed-off-by: Yanming Zhou <zhouyanming@gmail.com>
thanks @quaff |
I admit the unit test is a bit fragile, It depends gradle, since gradle reassigned |
TextMapCodec.extract() return null with no warning if SPAN_CONTEXT_KEY not present, TraceContextCodec should align with it.
After switch
TextMapCodec
toTraceContextCodec
, my application show lots of warning .I have to change my code to suppress it.
add ugly null check