-
Notifications
You must be signed in to change notification settings - Fork 304
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
HPCC-30389 Split JTrace getSpanContext function #18161
HPCC-30389 Split JTrace getSpanContext function #18161
Conversation
https://track.hpccsystems.com/browse/HPCC-30389 |
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.
@rpastrana looks like a good change - the new functions are more logical.
One minor comment and one question.
Also a couple of trivial issues with the commit message that are probably worth addressing at the same time.
- Splits should probably be "Split" to aid readability.
- "getClientHeaders funtion" should be "function"
system/jlib/jtrace.cpp
Outdated
{ | ||
if (ctxProps == nullptr) | ||
return false; | ||
if (clientHeaders == nullptr) |
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.
minor: I don't think it is ever useful to call this if clientHeaders is null, so better to assert (e.g. assertex(clientHeaders)). Otherwise the derived functions also need to check that clientHeaders also non-null for consistency.
same goes for getSpanContext()
testing/unittests/jlibtests.cpp
Outdated
|
||
CPPUNIT_ASSERT_EQUAL_MESSAGE("Unexpected getSpanContext failure detected", true, getSpanCtxSuccess); | ||
//CPPUNIT_ASSERT_EQUAL_MESSAGE("Unexpected getClientHeaders failure detected", true, retrievedClientHeaders->length()>0); |
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.
Should this test be uncommented again?
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.
Changed it to ensure at least the parentspan was provided.
d81b305
to
faf9716
Compare
faf9716
to
1ab6489
Compare
@GordonSmith I'm noticing vcpkg failures in this PR related to opentelemetry download failures: |
@ghalliday made the minor changes requested and ended up squashing |
@rpastrana That url is working fine here - I will wait for your re-run to fail before I look any further? |
Thanks @GordonSmith , looks like the latest checks are running fine now. |
@ghalliday added a few minor unittest cleanup changes |
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.
@rpastrana please squash
- Adjusts ISpan getSpanContex signature - Adds new ISpan getClientHeaders function - Ensures tracestate is produced Signed-off-by: Rodrigo Pastrana <[email protected]>
5a1a49a
to
7b68ed7
Compare
Done. |
4b4122b
into
hpcc-systems:candidate-9.4.x
Type of change:
Checklist:
Smoketest:
Testing: