feat(origin detection): implement new spec
What does this PR do?
Implements the new Origin Detection spec.
Motivation
This is needed to improve Origin Detection with specific edges cases such as Kata Containers while also improving both backward compatibility and future-proofness.
Additional Notes
This change were already discussed internally as part of the RFC regarding New Origin Detection Spec.
Possible Drawbacks / Trade-offs
None
Describe how to test/QA your changes
Unit tests were either modified or added to reflect changes.
Checklist
- [x] Change(s) are motivated and described in the PR description
- [x] Testing strategy is described if automated tests are not included in the PR
- [x] Risks are described (performance impact, potential for breakage, maintainability)
- [x] Change is maintainable (easy to change, telemetry, documentation)
- [x] Library release note guidelines are followed or label
changelog/no-changelogis set - [x] Documentation is included (in-code, generated user docs, public corp docs)
- [x] Backport labels are set (if applicable)
- [x] If this PR changes the public interface, I've notified
@DataDog/apm-tees.
Reviewer Checklist
- [x] Title is accurate
- [x] All changes are related to the pull request's stated goal
- [x] Description motivates each change
- [x] Avoids breaking API changes
- [x] Testing strategy adequately addresses listed risks
- [x] Change is maintainable (easy to change, telemetry, documentation)
- [x] Release note makes sense to a user of the library
- [x] Author has acknowledged and discussed the performance implications of this PR as reported in the benchmarks PR comment
- [x] Backport labels are set in a manner that is consistent with the release branch maintenance policy
Datadog Report
Branch report: CONTP-19/wassim.dhif/implement-new-origin-detection-spec
Commit report: dda2551
Test service: dd-trace-py
:white_check_mark: 0 Failed, 1286 Passed, 0 Skipped, 36m 34.31s Total duration (29.97s time saved)
Benchmarks
Benchmark execution time: 2024-12-09 16:31:40
Comparing candidate commit 99a15cc5776b547230dbfe7a945490669f2e9610 in PR branch CONTP-19/wassim.dhif/implement-new-origin-detection-spec with baseline commit 54ab4f57fb9d4e582d86ae616c7ad13cf61c81f5 in branch main.
Found 0 performance improvements and 0 performance regressions! Performance is the same for 394 metrics, 2 unstable metrics.
CODEOWNERS have been resolved as:
ddtrace/debugging/_uploader.py @DataDog/debugger-python
ddtrace/internal/constants.py @DataDog/apm-core-python
ddtrace/internal/processor/stats.py @DataDog/apm-core-python
ddtrace/internal/remoteconfig/client.py @DataDog/remote-config @DataDog/apm-core-python
ddtrace/internal/runtime/container.py @DataDog/apm-core-python
ddtrace/internal/telemetry/writer.py @DataDog/apm-core-python
ddtrace/internal/writer/writer.py @DataDog/apm-core-python
ddtrace/profiling/exporter/http.py @DataDog/profiling-python
tests/integration/test_integration.py @DataDog/apm-core-python
/merge
Devflow running: /merge
View all feedbacks in Devflow UI.
2024-12-09 15:32:54 UTC :information_source: MergeQueue: waiting for PR to be ready
This merge request is not mergeable yet, because of pending checks/missing approvals. It will be added to the queue as soon as checks pass and/or get approvals.
Note: if you pushed new commits since the last approval, you may need additional approval.
You can remove it from the waiting list with /remove command.
2024-12-09 17:13:16 UTC :information_source: MergeQueue: merge request added to the queue
The median merge time in main is 31m.
2024-12-09 17:46:16 UTC :x: MergeQueue: The checks failed on this merge request
Tests failed on this commit 1dbf1e8:
What to do next?
- Investigate the failures and when ready, re-add your pull request to the queue!
- Any question, go check the FAQ.