-
Notifications
You must be signed in to change notification settings - Fork 228
Supports jaeger-debug-id in TraceContextCodec #701
Conversation
Codecov Report
@@ Coverage Diff @@
## master #701 +/- ##
============================================
- Coverage 89.57% 89.55% -0.03%
- Complexity 587 588 +1
============================================
Files 70 70
Lines 2159 2164 +5
Branches 282 284 +2
============================================
+ Hits 1934 1938 +4
Misses 136 136
- Partials 89 90 +1
Continue to review full report at Codecov.
|
jaeger-core/src/main/java/io/jaegertracing/internal/JaegerSpanContext.java
Outdated
Show resolved
Hide resolved
jaeger-core/src/main/java/io/jaegertracing/internal/propagation/TraceContextCodec.java
Outdated
Show resolved
Hide resolved
jaeger-core/src/test/java/io/jaegertracing/internal/propagation/TraceContextCodecTest.java
Outdated
Show resolved
Hide resolved
| try { | ||
| verify(System.out).write(captor.capture()); | ||
| verify(System.out, atLeast(0)).write(captor.capture(), anyInt(), anyInt()); | ||
| // gradle will call write(byte[]) instead of write(byte[],off,len) |
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.
What does "gradle" have to do with 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.
?
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.
gradle output log via write(byte[]) and eclipse output log via write(byte[],int,int) , before this change, tests failed with eclipse junit runner. I know this is fragile, but I cannot find a better way to assert log message.
jaeger-core/src/test/java/io/jaegertracing/internal/propagation/TraceContextCodecTest.java
Outdated
Show resolved
Hide resolved
|
ping |
jaeger-core/src/main/java/io/jaegertracing/internal/JaegerSpanContext.java
Outdated
Show resolved
Hide resolved
jaeger-core/src/test/java/io/jaegertracing/internal/propagation/TraceContextCodecTest.java
Outdated
Show resolved
Hide resolved
jaeger-core/src/test/java/io/jaegertracing/internal/propagation/TraceContextCodecTest.java
Outdated
Show resolved
Hide resolved
Signed-off-by: Yanming Zhou <zhouyanming@gmail.com>
|
Thanks! |
Fix #699