Repository navigation
Conversation
Codeowners resolved asResolved from the full PR diff against |
Dependency direction analysis
|
BenchmarksBenchmark execution time: 2026-11-25 17:47:08 Comparing candidate commit 9b8586c in PR branch Found 0 performance improvements and 2 performance regressions! Performance is the same for 636 metrics, 10 unstable metrics, 1 flaky benchmarks without significant changes.
|
…rting them Telemetry moves to ddtrace-internal, which can't import dd-trace-py's AppSec settings. It now asks generic questions through telemetry_inputs: whether to collect full dependency metadata, whether and how many API endpoints to collect, and which configurations to report at import. ddtrace/__init__.py answers them from the AppSec settings, read lazily on each use, so behavior and the configuration report order are unchanged. Without registrations telemetry falls back to the AppSec defaults. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
_threads moved to ddtrace.internal.native._threads, where it ships in ddtrace-native. The serverless runtime-id test was the last importer of the old path, so it imports the new one and the alias goes away. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
82cd4cd to
9b8586c
Compare
🎉 All green!🧪 All tests passed 🔗 Commit SHA: 9b8586c | Docs | View more details | Give us feedback! |
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. |
|
@DataDog review |
There was a problem hiding this comment.
More details
Static inspection supports preservation of AppSec runtime setting reads and configuration-report order. The human PR discussion contained no substantive review feedback.
🤖 Bits Code Review · Commit 9b8586c
There was a problem hiding this comment.
More details
AppSec settings remain lazily read through the registered hooks, preserving runtime updates and configuration reporting order. The static reviewer found no remaining callers of the removed _threads alias.
🤖 Bits Code Review · Commit 9b8586c
Description
Follow-up to #22018 for the changes that need AppSec and serverless review. They were kept out of #22018 so it doesn't need those teams' approval.
ddtrace.internal.settings.appsec_telemetry(@DataDog/asm-python).ddtrace-internal, which can't import dd-trace-py's AppSec settings. Three generic hooks replace those reads:telemetry_inputs.dependencies: whether full dependency metadata is collected (todaySCA_ENABLED);telemetry_inputs.endpoints: whether API endpoints are collected, and how many;telemetry_inputs.configurations: which configurations to report at import.ddtrace/__init__.pyregisters them from the AppSec settings, read lazily on each use. Values, runtime changes and the configuration report order are unchanged.ddtrace.internal._threadsalias (@DataDog/apm-serverless,@DataDog/serverless-aws)._threadsmoved toddtrace.internal.native._threadsin chore(package-split): prepare dd-trace-py for moving code into packages #22018. The serverless runtime-id test was the last importer of the old path.Testing
Docker, Python 3.12: telemetry 275 passed,
tests/appsec/sca132 passed,tests/contrib/aws_lambda/test_runtime_id.py83 passed. A new test covers telemetry's defaults when nothing is registered.Risks
None expected: behavior is unchanged when dd-trace-py registers the inputs, which
import ddtracealways does.Additional Notes
Internal refactor, no release note.