You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Remote Config clients include process/runtime identity in their generated client id, and the native Remote Config client keeps that id in its own state. When runtime identity is refreshed for a restored MicroVM instance, rebuild the Remote Config client identity and drop the stale native client so future requests use the refreshed identity.
Resolved from the full PR diff against tianning.li/2-flask-web-request-starting-event using the target branch CODEOWNERS file.
CODEOWNERS team requests not listed below are not required by the current file set.
To see all violations, download the layers-base.json and layers-pr.json artifacts from this CI job and run:
uv run --script scripts/import-analysis/layers.py compare layers-base.json layers-pr.json
litianningdatadog
changed the title
fix(remoteconfig): refresh client identity on runtime refresh
chore(remoteconfig): refresh client identity on runtime refresh
Aug 23, 2026
2 failed tests. Assertion Error: Expected probes to be emitting after enabling dynamic instrumentation and Expected snapshots to be emitting after enabling exception replay.
❌ tests.debugger.test_debugger_inproduct_enablement.Test_Debugger_InProduct_Enablement_Dynamic_Instrumentation.test_inproduct_enablement_di[flask-poc] from system_tests_suite
AssertionError: Expected probes to be emitting after enabling dynamic instrumentation
assert False
+ where False = <tests.debugger.test_debugger_inproduct_enablement.Test_Debugger_InProduct_Enablement_Dynamic_Instrumentation object at 0x7f820516ee70>.di_explicit_enabled
self = <tests.debugger.test_debugger_inproduct_enablement.Test_Debugger_InProduct_Enablement_Dynamic_Instrumentation object at 0x7f820516ee70>
def test_inproduct_enablement_di(self):
self.assert_rc_state_not_error()
self.assert_all_weblog_responses_ok()
...
❌ tests.debugger.test_debugger_inproduct_enablement.Test_Debugger_InProduct_Enablement_Exception_Replay.test_inproduct_enablement_exception_replay[flask-poc] from system_tests_suite
AssertionError: Expected snapshots to be emitting after enabling exception replay
assert False
+ where False = <tests.debugger.test_debugger_inproduct_enablement.Test_Debugger_InProduct_Enablement_Exception_Replay object at 0x7f820516ef30>.er_explicit_enabled
self = <tests.debugger.test_debugger_inproduct_enablement.Test_Debugger_InProduct_Enablement_Exception_Replay object at 0x7f820516ef30>
def test_inproduct_enablement_exception_replay(self):
self.assert_rc_state_not_error()
self.assert_all_weblog_responses_ok(expected_code=500)
...
CI on my pull request is failing. Help me find and fix the root cause of each failing job below — they were flagged as caused by changes in this PR, so focus on the diff. For each job, explain the failure and propose a fix.
Branch: tianning.li/3-1-remoteconfig-identity-client
System Tests | tracer-release / End-to-end #1 / flask-poc 1
Commit: 8fd5f56614dfbd81a3179ef58b2ee01a7c15f384
Error (code / test):
10 failed tests. Error: No appsec event validates this condition in multiple tests while asserting WAF attack.
CI job: https://github.com/DataDog/dd-trace-py/actions/runs/32668821950/job/97267220336
System Tests | tracer-release / End-to-end #1 / uds-flask 1
Commit: 8fd5f56614dfbd81a3179ef58b2ee01a7c15f384
Error (code / test):
10 failed tests. Error: No appsec event validate this condition in multiple instances of assert_waf_attack.
CI job: https://github.com/DataDog/dd-trace-py/actions/runs/32668821950/job/97267220969
System Tests | tracer-release / End-to-end #10 / flask-poc 10
Commit: 8fd5f56614dfbd81a3179ef58b2ee01a7c15f384
Error (code / test):
2 failed tests. Assertion Error: Expected probes to be emitting after enabling dynamic instrumentation and Expected snapshots to be emitting after enabling exception replay.
CI job: https://github.com/DataDog/dd-trace-py/actions/runs/32668821950/job/97267220528
Plus 24 more failing jobs not shown here.
Comparing candidate commit 3e763c0 in PR branch tianning.li/3-1-remoteconfig-identity-client with baseline commit d59e112 in branch tianning.li/2-flask-web-request-starting-event.
Found 0 performance improvements and 10 performance regressions! Performance is the same for 612 metrics, 10 unstable metrics.
Explanation
This is an A/B test comparing a candidate commit's performance against that of a baseline commit. Performance changes are noted in the tables below as:
🟩 = significantly better candidate vs. baseline
🟥 = significantly worse candidate vs. baseline
We compute a confidence interval (CI) over the relative difference of means between metrics from the candidate and baseline commits, considering the baseline as the reference.
If the CI is entirely outside the configured SIGNIFICANT_IMPACT_THRESHOLD (or the deprecated UNCONFIDENCE_THRESHOLD), the change is considered significant.
Feel free to reach out to #apm-benchmarking-platform on Slack if you have any questions.
More details about the CI and significant changes
You can imagine this CI as a range of values that is likely to contain the true difference of means between the candidate and baseline commits.
CIs of the difference of means are often centered around 0%, because often changes are not that big:
---------------------------------(------|---^--------)-------------------------------->
-0.6% 0% 0.3% +1.2%
| | |
lower bound of the CI --' | |
sample mean (center of the CI) -------------' |
upper bound of the CI ----------------------'
As described above, a change is considered significant if the CI is entirely outside the configured SIGNIFICANT_IMPACT_THRESHOLD (or the deprecated UNCONFIDENCE_THRESHOLD).
For instance, for an execution time metric, this confidence interval indicates a significantly worse performance:
----------------------------------------|---------|---(---------^---------)---------->
0% 1% 1.3% 2.2% 3.1%
| | | |
significant impact threshold --------------' | | |
lower bound of CI --------------' | |
sample mean (center of the CI) --------------------------' |
upper bound of CI ----------------------------------'
scenario:httppropagationinject-ids_only
🟥 execution_time [+2.009µs; +2.210µs] or [+10.501%; +11.550%]
scenario:iastaspects-add_aspect
🟥 execution_time [+14.503µs; +18.243µs] or [+14.308%; +17.998%]
scenario:iastaspects-join_aspect
🟥 execution_time [+48.155µs; +52.033µs] or [+22.761%; +24.594%]
scenario:iastaspects-ljust_noaspect
🟥 execution_time [+61.771µs; +66.015µs] or [+21.705%; +23.197%]
scenario:iastaspects-title_noaspect
🟥 execution_time [+29.311µs; +33.463µs] or [+14.999%; +17.123%]
scenario:iastaspectsospath-ospathbasename_aspect
🟥 execution_time [+144.547µs; +149.975µs] or [+35.431%; +36.762%]
scenario:iastaspectssplit-rsplit_aspect
🟥 execution_time [+16.594µs; +21.953µs] or [+11.579%; +15.318%]
scenario:span-start
🟥 execution_time [+1.458ms; +1.600ms] or [+9.896%; +10.864%]
unstable execution_time [-61592.105ns; +59899.871ns] or [-9.571%; +9.308%]
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Split from #19780.
Remote Config clients include process/runtime identity in their generated client id, and the native Remote Config client keeps that id in its own state. When runtime identity is refreshed for a restored MicroVM instance, rebuild the Remote Config client identity and drop the stale native client so future requests use the refreshed identity.
Testing
scripts/lint format_check ddtrace/internal/remoteconfig/client.py tests/internal/remoteconfig/test_remoteconfig_native.pygit diff --checkStack
Draft split branch. Stacked on #19816.