Repository navigation
Conversation
ddtrace.internal.native becomes the ddtrace-native package, which holds compiled code only and imports no Python package. Its __init__ imported settings.env for get_configuration_from_disk, so it could not ship as is. get_configuration_from_disk moves to settings._core, its only caller, which already imports native and env. The forksafe reseed registration in the same __init__ is left alone: #22125 replaces it. mypy, run on the files a commit touches, rejected the existing assignment to a parsed item in openfeature.py once _core.py was among them. _ParsedValues declares __setattr__ for type checking only. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
ddtrace/internal/native/ becomes the ddtrace-native package, which holds only compiled code. is_panic_exception is a plain Python helper used by forksafe, packages and telemetry, which move to ddtrace-internal, and by the tracer, the writers and crashtracking, so it moves next to them as native_exceptions. Importing it no longer loads the Rust extension as a side effect, which also removes the forksafe -> native -> forksafe import cycle. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Codeowners resolved asResolved from the full PR diff against |
Dependency direction analysis
|
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 configuration-loader relocation preserves environment lookups and parsing behavior, and all panic-helper callers use the new module. Static review identified no actionable defect.
🤖 Bits Code Review · Commit d36a563
BenchmarksBenchmark execution time: 2026-11-26 17:29:07 Comparing candidate commit d36a563 in PR branch Found 0 performance improvements and 0 performance regressions! Performance is the same for 614 metrics, 10 unstable metrics, 1 flaky benchmarks without significant changes.
|
Part of replacing #22018 with smaller PRs on
main.What
ddtrace/internal/native/becomes theddtrace-nativepackage, which holds compiled code only and imports noddtrace Python module. This removes the Python glue that does not belong there:
get_configuration_from_disk()moves fromnative/__init__.pytosettings/_core.py, its only caller, whichalready imports
nativeandenv.native/__init__.pyno longer importssettings.env.native/exceptions.py(is_panic_exception, plain Python) moves toddtrace/internal/native_exceptions.py.Importing it no longer loads the Rust extension, which also removes the
forksafe -> native -> forksafeimport cycle.
The forksafe RNG reseed registration in
native/__init__.pyis left as is: #22125 replaces it withpthread_atfork. Once both land,native/__init__.pyonly re-exports from_native.Notes
native/__init__.py(adjacent import lines). The resolution is to takeboth sides' deletions.
openfeature.pyonce_core.pywas touched;_ParsedValuesnow declares__setattr__underTYPE_CHECKINGonly.@DataDog/profiling-pythonthrough the import change inddtrace/internal/core/crashtracking.py.🤖 Generated with Claude Code