-
Notifications
You must be signed in to change notification settings - Fork 515
fix: fix trace id in logs when using set_parent nested in a trace span #2924
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
base: main
Are you sure you want to change the base?
Conversation
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #2924 +/- ##
=====================================
Coverage 81.3% 81.4%
=====================================
Files 126 126
Lines 24251 24296 +45
=====================================
+ Hits 19732 19779 +47
+ Misses 4519 4517 -2 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
Hey @SF-Zhou thanks for opening the PR! |
Sure. The description of the PR has been updated. |
1f41d19
to
55799ee
Compare
@bantonsson I think your eyes on this would be helpful! |
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!
Requesting changing to address the comment below:
See https://github.com/open-telemetry/opentelemetry-rust/pull/2924/files#r2044837776
Done. |
46b7a4a
to
888973a
Compare
@cijothomas could you please review the updates when convenient? If everything looks good, we can proceed to merge. |
Fixes #2824.
Changes
When using distributed tracing and calling
set_parent
to set the context, the currently obtainedtrace_id
was incorrect. This PR fixes this issue.This fix has been validated in online production environments. For users with the same requirements, they can temporarily opt to use the patched
opentelemetry-appender-tracing-patched
crate.Merge requirement checklist
CHANGELOG.md
files updated for non-trivial, user-facing changes