-
Notifications
You must be signed in to change notification settings - Fork 845
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
DefaultTracer: Fix noParent being ignored after explicit parent. #1617
DefaultTracer: Fix noParent being ignored after explicit parent. #1617
Conversation
@@ -114,6 +114,22 @@ void testSpanContextPropagation_fromContext() { | |||
assertThat(span.getContext()).isSameAs(spanContext); | |||
} | |||
|
|||
@Test | |||
void testSpanContextPropagation_fromContextAfterNoParent() { |
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 believed this test would fail before this PR initially, but it's the other way round. Still adding this test to cover this case too.
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.
Thanks!
Codecov Report
@@ Coverage Diff @@
## master #1617 +/- ##
============================================
+ Coverage 86.64% 86.66% +0.01%
Complexity 1404 1404
============================================
Files 163 163
Lines 5535 5535
Branches 551 551
============================================
+ Hits 4796 4797 +1
Misses 542 542
+ Partials 197 196 -1
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.
Looks great! Thanks!
See #1611 (comment)