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
Telemetry's native worker captures identity when it is created. Stop and rebuild the worker after runtime identity refresh so telemetry emitted after a MicroVM /run refresh uses 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.
litianningdatadog
changed the title
fix(telemetry): rebuild worker on identity refresh
chore(telemetry): rebuild worker on identity refresh
Aug 23, 2026
2 failed tests. AssertionError: /spawn_child did not succeed: status None in tests/test_telemetry.py:597 and status None in tests/appsec/api_security_testing/test_headers_collection.py:40.
Showing tests most relevant to this failure.
❌ tests.test_telemetry.Test_Telemetry.test_session_id_headers_across_forks[uwsgi-poc] from system_tests_suite
AssertionError: /spawn_child did not succeed: status None
assert None == 200
+ where None = HttpResponse(status_code:None, headers:{}, text:None).status_code
+ where HttpResponse(status_code:None, headers:{}, text:None) = <tests.test_telemetry.Test_Telemetry object at 0x7efd281fcf20>.spawn_child_response
self = <tests.test_telemetry.Test_Telemetry object at 0x7efd281fcf20>
def test_session_id_headers_across_forks(self):
"""Test session ID headers in telemetry (fork=true). Stable Service Instance Identifier RFC."""
> self._validate_session_id_headers_across_processes()
...
❄️ tests.appsec.api_security_testing.test_headers_collection.Test_SecurityTestingHeaders.test_not_propagated_downstream[uwsgi-poc] from system_tests_suite
assert None == 200
+ where None = HttpResponse(status_code:None, headers:{}, text:None).status_code
self = <tests.appsec.api_security_testing.test_headers_collection.Test_SecurityTestingHeaders object at 0x7efd215214c0>
def test_not_propagated_downstream(self):
"""The security testing headers must not be propagated to downstream services.
Asserts directly on the outbound request headers reported back by /make_distant_call,
rather than counting tagged spans across the distributed trace -- the latter false-passes
...
DataDog/apm-reliability/dd-trace-py | K8S_LIB_INJECTION_NO_AC: [dd-lib-python-init-test-django-gunicorn, ${PRIVATE_DOCKER_REGISTRY}/system-tests/dd-lib-python-init-test-django-gunicorn, 235494822917.dkr.ecr.us-east-1.amazonaws.com/ssi/dd-lib-python-init:glci132648616] — 🔧 Needs a code fix, caused by this PR
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-4-telemetry-identity-refresh
System Tests | tracer-release / End-to-end #2 / uwsgi-poc 2
Commit: 13b55e8fe35e424d13d4b1150f93f2f37839110c
Error (code / test):
2 failed tests. AssertionError: /spawn_child did not succeed: status None in tests/test_telemetry.py:597 and status None in tests/appsec/api_security_testing/test_headers_collection.py:40.
CI job: https://github.com/DataDog/dd-trace-py/actions/runs/32668830920/job/97275776081
ℹ️ Info
No other issues found (see more)
❄️ No new flaky tests detected
🔄 Datadog auto-retried 60 jobs - 0 passed on retry
Comparing candidate commit 2165d36 in PR branch tianning.li/3-4-telemetry-identity-refresh with baseline commit d59e112 in branch tianning.li/2-flask-web-request-starting-event.
Found 0 performance improvements and 1 performance regressions! Performance is the same for 29 metrics, 0 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 ----------------------------------'
🟥 execution_time [+427.595ns; +463.635ns] or [+15.756%; +17.084%]
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.
Telemetry's native worker captures identity when it is created. Stop and rebuild the worker after runtime identity refresh so telemetry emitted after a MicroVM
/runrefresh uses the refreshed identity.Testing
scripts/lint format_check ddtrace/internal/telemetry/writer.py tests/telemetry/test_writer.pygit diff --checkStack
Draft split branch. Stacked on #19816.