feat(otel-thread-ctx): add update-and-attach operation - #2443
Conversation
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
|
✅ All CI checks and tests passed. 🎉 All green!🧪 All tests passed 🎯 Code Coverage (details) 🔗 Commit SHA: 388738b | Docs | View more details | Give us feedback! |
Artifact Size Benchmark Reportaarch64-alpine-linux-musl
aarch64-unknown-linux-gnu
libdatadog-x64-windows
libdatadog-x86-windows
x86_64-alpine-linux-musl
x86_64-unknown-linux-gnu
|
yannham
left a comment
There was a problem hiding this comment.
Reasonable addition, and implementation LGTM 👍
|
/merge |
|
View all feedbacks in Devflow UI.
The expected merge time in
|
What does this PR do?
It adds
ddog_otel_thread_ctx_update_and_attachoperation for updating a named thread context and attaching it.Motivation
During a review of a Ruby implementation for the OTel Thread Context we realized that it would be nice to have one operation that updates the context and attaches it, to avoid attaching a context record with potentially stale data before updating it.
Additional Notes
We want this change for the Ruby tracer, since Ruby threads can migrate between OS threads under M:N scheduler (which was added in Ruby 3.3).
How to test the change?
CI.