-
Notifications
You must be signed in to change notification settings - Fork 126
Do not strip leading zeros from trace IDs and span IDs #259
Do not strip leading zeros from trace IDs and span IDs #259
Conversation
✅ Build jaeger-client-cpp 172 completed (commit c19c41e689 by @tobiasstadler) |
Signed-off-by: Tobias Stadler <[email protected]>
Signed-off-by: Tobias Stadler <[email protected]>
✅ Build jaeger-client-cpp 173 completed (commit 582e56a4b7 by @tobiasstadler) |
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.
Q: since you're looking into this, I just want too make sure there is a unit test that ensures that this library still CAN consume non-padded IDs from the incoming request headers
src/jaegertracing/TraceID.h
Outdated
out << std::hex << _high << std::setw(16) << std::setfill('0') | ||
<< std::hex << _low; | ||
} | ||
out << std::setw(16) << std::setfill('0') << std::hex << _high |
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.
this does not seem backwards compatible, what's the reason for removing if (_high == 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.
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.
I though the trace id is now always 32 hex chars long. But I was wrong.
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, all Jaeger SDKs still use 64bit by default, you have to explicitly enable 128bit.
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.
Yes, noticed that after your comment. I misread the prs for the other sdks.
TEST(SpanContext, testFromStream) tests both padded and unpadded trace ids |
Signed-off-by: Tobias Stadler <[email protected]>
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!
✅ Build jaeger-client-cpp 174 completed (commit 8cfcacf79f by @tobiasstadler) |
…#259) * Do not strip leading zeros from trace IDs Signed-off-by: Tobias Stadler <[email protected]> * Do not strip leading zeros from span IDs Signed-off-by: Tobias Stadler <[email protected]> * high should only be used if it is non zero Signed-off-by: Tobias Stadler <[email protected]>
Which problem is this PR solving?