refactor: remove global tracer variable from core#19083
Conversation
🎉 All green!🧪 All tests passed 🔗 Commit SHA: 95e2b2e | Docs | Datadog PR Page | Give us feedback! |
Circular import analysis
|
Codeowners resolved as |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 486b77c939
ℹ️ About Codex in GitHub
Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".
brettlangdon
left a comment
There was a problem hiding this comment.
lgtm, my main concern would have been the performance overhead, but the span property and get_root_span shouldn't be called too much?
BenchmarksBenchmark execution time: 2026-07-16 21:40:52 Comparing candidate commit 95e2b2e in PR branch Found 0 performance improvements and 4 performance regressions! Performance is the same for 617 metrics, 10 unstable metrics. scenario:iastaspects-index_aspect
scenario:iastaspectsospath-ospathbasename_aspect
scenario:span-start
scenario:telemetryaddmetric-1-count-metric-1-times
|
|
/merge |
|
View all feedbacks in Devflow UI.
This pull request is not mergeable according to GitHub. Common reasons include pending required checks, missing approvals, or merge conflicts — but it could also be blocked by other repository rules or settings.
devflow unqueued this merge request: It did not become mergeable within the expected time |
…rease as a result of lookup on ExecutionContext
|
/merge |
|
View all feedbacks in Devflow UI.
PR already in the queue with status waiting |
|
/merge |
|
View all feedbacks in Devflow UI.
PR already in the queue with status waiting |
|
/merge |
|
View all feedbacks in Devflow UI.
This pull request is not mergeable according to GitHub. Common reasons include pending required checks, missing approvals, or merge conflicts — but it could also be blocked by other repository rules or settings.
The expected merge time in
Build pipeline has failing jobs for 3ccdc23: What to do next?
DetailsSince those jobs are not marked as being allowed to fail, the pipeline will most likely fail. |
|
/merge |
|
View all feedbacks in Devflow UI.
PR already in the queue with status waiting |
|
/merge |
|
View all feedbacks in Devflow UI.
The expected merge time in
|
This change replaces
core.tracerwith a tracer instance stored on the rootExecutionContextobject, increasing the separation of concerns between tracing and core. With this change, tracing becomes a user of the core API rather than being a part of it.This change also increases a missed microbenchmark by a small amount to account for slightly increased execution time during span creation as a result of the
ExecutionContext.get_itemcall added here.