Fix: Update Opentelemety Active Functionality#7319
Conversation
Overall package sizeSelf size: 4.5 MB Dependency sizes| name | version | self size | total size | |------|---------|-----------|------------| | import-in-the-middle | 2.0.3 | 76.87 kB | 808.03 kB | | dc-polyfill | 0.1.10 | 26.73 kB | 26.73 kB |🤖 This report was automatically generated by heaviest-objects-in-the-universe |
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #7319 +/- ##
==========================================
- Coverage 85.86% 85.84% -0.02%
==========================================
Files 518 518
Lines 22375 22387 +12
==========================================
+ Hits 19212 19219 +7
- Misses 3163 3168 +5 Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
d90db71 to
48c1ecd
Compare
BenchmarksBenchmark execution time: 2026-02-01 17:46:04 Comparing candidate commit 8b9d3f9 in PR branch Found 0 performance improvements and 0 performance regressions! Performance is the same for 233 metrics, 27 unstable metrics. |
| return propagation.setBaggage(store, otelBaggages) | ||
| } | ||
| return context | ||
| return store |
There was a problem hiding this comment.
Isn't active supposed to always return a context? Or is a context also a plain object similar to a store so a store can be used in-place?
rochdev
left a comment
There was a problem hiding this comment.
Just a non-blocking question but otherwise LGTM.
48c1ecd to
ffe4213
Compare
This comment has been minimized.
This comment has been minimized.
|
/merge |
|
View all feedbacks in Devflow UI.
Added to the queue but the mergequeue is not enabled for now.
[email protected] unqueued this merge request |
|
/remove |
|
View all feedbacks in Devflow UI.
|
* update active function * comments --------- Co-authored-by: Thomas Watson <[email protected]>
* update active function * comments --------- Co-authored-by: Thomas Watson <[email protected]>
* update active function * comments --------- Co-authored-by: Thomas Watson <[email protected]>
* update active function * comments --------- Co-authored-by: Thomas Watson <[email protected]>
What does this PR do?
This PR refactors the context manager’s active() method to improve context handling between Datadog and OpenTelemetry and to fix edge cases when converting between Datadog and OpenTelemetry spans.
Motivation
This issue was reported in
APMS-18328and can be reproduced with the code below. The core problem is that retrieving and setting the active span works as expected when using the Datadog API, but fails silently when performed through the OpenTelemetry API.Expected result: For this scenario we would expect both tags(attributes) to be present on the same span.
Plugin Checklist
Additional Notes