-
Notifications
You must be signed in to change notification settings - Fork 373
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
fix(otel): support abseil <= 20210324 #12993
fix(otel): support abseil <= 20210324 #12993
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #12993 +/- ##
=======================================
Coverage 93.59% 93.59%
=======================================
Files 2068 2069 +1
Lines 180929 180942 +13
=======================================
+ Hits 169344 169359 +15
+ Misses 11585 11583 -2
☔ View full report in Codecov by Sentry. |
span_context.span_id().ToLowerBase16({span_id.data(), span_id.size() - 1}); | ||
span_id[2 * SpanId::kSize] = '\0'; | ||
char* end = nullptr; | ||
std::uint64_t span_id_dec = std::strtoull(span_id.data(), &end, 16); |
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.
Why not handle errors, just like the implementation with absl::SimpleHexAtoi()
did?
std::uint64_t span_id_dec = std::strtoull(span_id.data(), &end, 16); | |
auto const span_id_dec = std::strtoull(span_id.data(), &end, 16); | |
if (end != span_id.data() + span_id.size()) return; |
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.
1bf8901
to
535ee80
Compare
Part of the work for #12991
SimpleHexAtoi()
was not added until later.Updates to
cmake-oldest-deps.sh
revealed this.... but I need to do a few things to update that script. So there is no verification in our CI at this commit.This change is