Repository navigation
Conversation
cleanup_loaded_modules() drops every module ddtrace imported except ddtrace's own. Once a module is bridged, ddtrace.internal.X is the same object as _ddtrace_internal.X, and the cleanup kept the ddtrace key but dropped the package one. The next import of the package module (e.g. from _ddtrace_coverage) then made a second copy with empty state (the supported-configurations registry, ModuleWatchdog, logger state), and a pyo3 module cannot be initialized twice at all. Keep every _ddtrace_* module, like ddtrace's own. No such modules are loaded today, so this is a no-op until the first bridge and not user visible. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
…e's package packages.py read third-party.tar.gz from the hardcoded "ddtrace.internal" package. Resolving it from the module's own package keeps the lookup right once packages.py and its data file move to ddtrace-internal, so the port stays verbatim. In dd-trace-py it still resolves to ddtrace.internal. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Codeowners resolved asResolved from the full PR diff against |
Dependency direction analysis
|
BenchmarksBenchmark execution time: 2026-11-26 17:45:54 Comparing candidate commit 1fd5d43 in PR branch Found 0 performance improvements and 0 performance regressions! Performance is the same for 601 metrics, 10 unstable metrics, 1 flaky benchmarks without significant changes.
|
Codex Review Summary: ✅ CompletedThis 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. |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 1fd5d4396e
ℹ️ 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".
| if m.startswith("_ddtrace_"): | ||
| continue |
There was a problem hiding this comment.
Benchmark the changed bootstrap cleanup path
When module unloading is enabled, this adds a prefix check to the startup module-cleanup loop. The supplied validation lists correctness tests and commit hooks but no startup benchmark results. Run the run-benchmarks skill against the parent and record the startup comparison to satisfy the explicit benchmark requirement in AGENTS.md; correctness tests do not cover startup performance.
AGENTS.md reference: AGENTS.md:L16-L18
Useful? React with 👍 / 👎.
There was a problem hiding this comment.
More details
The archive lookup still resolves to ddtrace.internal at this revision, and bootstrap cleanup preserves extracted package modules alongside their ddtrace aliases. The completed static review identified no actionable defects.
🤖 Bits Code Review · Commit 1fd5d43
Description
Part of replacing #22018 with smaller PRs on main. Two commits, ported verbatim:
cleanup_loaded_modules()keeps every_ddtrace_*module, like ddtrace's own. Once a module is bridged,ddtrace.internal.Xis the same object as_ddtrace_internal.X; dropping the package key made the next import create a second copy with empty state (registry, ModuleWatchdog, logger), and a pyo3 module cannot be initialised twice. No_ddtrace_*modules are loaded on main, so this is a no-op today: no release note. Test intests/internal/test_auto.py.packages.pyreadsthird-party.tar.gzfrom its own package (__name__.rpartition(".")[0]) instead of hardcodedddtrace.internal, so it stays right once it moves to ddtrace-internal. Still resolves toddtrace.internalhere.Testing
tests/internal(3.12; includes test_auto.py): 3357 passed. Commit hooks passed.🤖 Generated with Claude Code