refactor(internal): resolve the supported-configurations registry by pull #22130
All Vouch review confidence checks passed
Residual risk 0.32 = Change Risk (0.59) × (1 − Review Confidence (0.47)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.59 · 192 lines diff across 2 files
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.02 · 1 substantive comment(s)
Model 3 · Review Timing & Attention
Session adequacy: 100% · Reviewer familiarity: 35%
Bedrock Claude 3 · Risk Narration
(disconnected)
Groq Risk Narration
AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
Model 1 · Change Risk Attribution
SHAP Weights
Shallow Review Depth
shallow_review_depth
0.344
Diff Size
diff_size
0.315
Sensitive Paths
sensitive_paths
0.059
Real PR Conversation Timeline
1 comments
"Review active on #22130"
general
weight: 0.35
gnufede
Part of replacing #22018 with smaller PRs. Stacked on #22195; #22139 and #22140 stack on this one. The supported-config scan of split packages, which used to be in this PR, is now #22196, on
main.settings/env.pyimported the generated registry directly, which ties it to dd-trace-py. It is meant to move toddtrace-internal, which never importsddtrace. This PR declares the registry as theddtrace_internal.supported_configurationsentry point and hasenv.pyresolve it lazily on the first lookup that needs it (validation, aliases, sensitivity), cached afterwards. Nothing is registered at import time.env.py: only a first-party entry point is loaded (the shared policy inddtrace.internal.utils.entry_points). A missing, untrusted or failing entry point is logged once and means "unregistered".register_supported_configurations()stays as an explicit override (first registration wins). Addsget_aliases(name)/is_sensitive(name); telemetry keeps reading the registry directly (#22139 adopts them).fork(), through the shared after-fork child hooks (ddtrace/internal/entry_points.pyregisters the reset so uWSGI's C-level fork is covered too).settings/__init__.py(wave-1).settings/env.pystays unfrozen for now, because #22139 still edits it.Tests:
tests/internal/test_env.py.🤖 Generated with Claude Code