Repository navigation
Conversation
These modules are being ported to ddtrace-internal (_ddtrace_internal.utils) from this revision; freezing them keeps the port identical until the bridge lands. inspection.py is deliberately not frozen: only resolved_code_origin moves, and freezing the whole file would block unrelated changes. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Dependency direction analysis
|
Codeowners resolved asResolved from the full PR diff against |
❌ ErrorsYour PR has failed checks. Please review the issues below and take necessary action before merging. 🚦 1 Pipeline job failed
ℹ️ InfoNo other issues found (see more)🧪 All tests passed Useful? React with 👍 / 👎 This comment will be updated automatically if new data arrives.🔗 Commit SHA: b6b999c | Docs | View more details | Give us feedback! |
## Description `ddtrace/internal/utils/time.py` created a module-level logger (`log = get_logger(__name__)`) that nothing uses. Removing it makes the module stdlib-only. That lets it move to the `ddtrace-internal` package alongside the other shared utilities (DataDog/datadog-apm-python#77, freeze in #21967), as part of the package split. Both coverage and test optimization use `StopWatch` and `Time`. ## Testing - `rg` confirms the module never uses `log`, and nothing imports `log` from it. - The repo's commit hooks (ruff, mypy) pass. - No behavior change, so no new tests. ## Risks None. It removes an unused name. ## Additional Notes None. Co-authored-by: federico.mon <federico.mon@datadoghq.com>
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.
More details
The three freeze entries match the reviewed files’ SHA-256 hashes and follow the existing freeze-check format. The completed specialist review reported no actionable findings.
🤖 Bits Code Review · Commit b6b999c
## Description **Stacked on #22018** (base `gnufede/package-split-prep`). This freezes every file of the package split's first wave, so nothing can drift between the port and the bridge. It replaces #21967, #21973 and #21990. 33 files are frozen, with hashes of their content after #22018: - **Moving whole to `ddtrace-internal`** (DataDog/datadog-apm-python#77): `utils/cache.py`, `utils/paths.py`, `utils/obfuscation.py`, `utils/time.py`, `compat.py`, `assembly.py`, `logger.py`, `settings/__init__.py`, `settings/env.py`, `module.py`, `bytecode_injection/core.py`. - **Partially moving, frozen whole** so the ported symbols stay identical: - `utils/__init__.py` (`get_argument_value`, `set_argument_value`, `ArgumentError`); - `utils/formats.py` (`asbool`); - `utils/inspection.py` (`resolved_code_origin`); - `bytecode_injection/__init__.py` (`HookType`, `INJECTION_ASSEMBLY`). - **Moving to `ddtrace-coverage`** (DataDog/datadog-apm-python#82): all 18 files under `ddtrace/internal/coverage/`. `src/native` is not frozen here. The native switch is a separate step that waits on the profiling team's agreement on the profiling FFI approach. The bridge PR, landing after `ddtrace-internal` 0.4.0 and `ddtrace-coverage` 0.1.0 are released, replaces these modules with re-exports and removes these entries in the same PR. ## Testing Only `frozen-paths.txt` changes. All 33 hashes were checked against the committed file contents (the same comparison `freeze-check.yml` makes). ## Risks - **Edits are blocked** to these files until the bridge lands. Open PRs that touch them must merge first or rebase afterwards. Earlier we saw `module.py` (#21428, #21448), `coverage/instrumented_mode.py` and `coverage/util.py` (#21405), and older prototype drafts. - **Hash timing.** Hashes are taken from #22018's content. If #22018 changes before merging, they need regenerating. ## Additional Notes None. --------- Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
Description
This freezes three shared utility modules before they move to the
ddtrace-internalpackage (DataDog/datadog-apm-python#77), as part of the package split:ddtrace/internal/utils/cache.pyddtrace/internal/utils/paths.pyddtrace/internal/utils/obfuscation.pyThe freeze keeps the dd-trace-py copies identical to the ported revision (
8918a5a385) until dd-trace-py bridges to the released package. It follows the same flow asddtrace/internal/codeowners.py.ddtrace/internal/utils/inspection.pyis deliberately not frozen. Onlyresolved_code_originand its cached helper move, and freezing the whole file would block unrelated changes.Next steps, after the
ddtrace-internalrelease that ships these modules:_ddtrace_internal.Testing
Only
frozen-paths.txtchanges. The hashes are the sha256 of the files atorigin/main(8918a5a385). The freeze check validates them on this PR.Risks
While frozen, any PR that edits these three files fails the freeze check until the move completes.
Additional Notes
None.