Skip to content

Commit 788c8cf

Browse files
committed
Merge branch 'main' into vianney/enable-native-writer-by-default
2 parents fe49448 + be7f4cb commit 788c8cf

File tree

1,152 files changed

+12084
-28150
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

1,152 files changed

+12084
-28150
lines changed

.github/CODEOWNERS

Lines changed: 17 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -41,12 +41,16 @@ ddtrace/internal/_file_queue.py @DataDog/python-guild
4141
ddtrace/internal/_unpatched.py @DataDog/python-guild
4242
ddtrace/internal/compat.py @DataDog/python-guild @DataDog/apm-core-python
4343
ddtrace/internal/endpoints.py @DataDog/python-guild @DataDog/asm-python
44-
ddtrace/settings/config.py @DataDog/python-guild @DataDog/apm-sdk-capabilities-python
44+
ddtrace/internal/settings/_config.py @DataDog/python-guild @DataDog/apm-sdk-capabilities-python
4545
docs/ @DataDog/python-guild
4646
tests/utils.py @DataDog/python-guild
4747
tests/suitespec.yml @DataDog/python-guild @DataDog/apm-core-python
48+
tests/contrib/suitespec.yml @DataDog/python-guild
49+
tests/contrib/flask/app.py @DataDog/python-guild
50+
tests/contrib/django/django1_app/urls.py @DataDog/python-guild
4851
tests/suitespec.py @DataDog/python-guild @DataDog/apm-core-python
4952
scripts/bump_ddtrace.py @DataDog/python-guild
53+
tests/smoke_test.py @DataDog/python-guild
5054

5155
# Core / Language Platform
5256
tests/internal @DataDog/apm-core-python
@@ -95,7 +99,7 @@ tests/snapshots/test_selenium_* @DataDog/ci-app-libraries
9599

96100
# Debugger
97101
ddtrace/debugging/ @DataDog/debugger-python
98-
ddtrace/settings/dynamic_instrumentation.py @DataDog/debugger-python
102+
ddtrace/internal/settings/dynamic_instrumentation.py @DataDog/debugger-python
99103
ddtrace/internal/injection.py @DataDog/debugger-python @DataDog/apm-core-python
100104
ddtrace/internal/wrapping.py @DataDog/debugger-python @DataDog/apm-core-python
101105
ddtrace/internal/module.py @DataDog/debugger-python @DataDog/apm-core-python
@@ -114,7 +118,7 @@ benchmarks/bm/iast_utils* @DataDog/asm-python
114118
benchmarks/bm/iast_fixtures* @DataDog/asm-python
115119
benchmarks/base/aspects_benchmarks_generate.py @DataDog/asm-python
116120
ddtrace/appsec/ @DataDog/asm-python
117-
ddtrace/settings/asm.py @DataDog/asm-python
121+
ddtrace/internal/settings/asm.py @DataDog/asm-python
118122
ddtrace/contrib/internal/subprocess/ @DataDog/asm-python
119123
ddtrace/contrib/internal/flask_login/ @DataDog/asm-python
120124
ddtrace/contrib/internal/webbrowser @DataDog/asm-python
@@ -125,13 +129,12 @@ ddtrace/internal/iast/ @DataDog/asm-python
125129
tests/appsec/ @DataDog/asm-python
126130
tests/contrib/subprocess @DataDog/asm-python
127131
tests/snapshots/tests*appsec*.json @DataDog/asm-python
128-
tests/contrib/*/test*appsec*.py @DataDog/asm-python
129-
tests/contrib/*/test*iast*.py @DataDog/asm-python
130132
scripts/iast/* @DataDog/asm-python
131133

134+
132135
# Profiling
133136
ddtrace/profiling @DataDog/profiling-python
134-
ddtrace/settings/profiling.py @DataDog/profiling-python
137+
ddtrace/internal/settings/profiling.py @DataDog/profiling-python
135138
ddtrace/internal/datadog/profiling @DataDog/profiling-python
136139
tests/profiling @DataDog/profiling-python
137140
tests/profiling_v2 @DataDog/profiling-python
@@ -207,15 +210,15 @@ ddtrace/opentracer/ @DataDog/apm-sdk-capabilities
207210
ddtrace/propagation/ @DataDog/apm-sdk-capabilities-python
208211
ddtrace/openfeature/ @DataDog/asm-python @DataDog/apm-core-python
209212
tests/openfeature/ @DataDog/asm-python @DataDog/apm-core-python
210-
ddtrace/settings/_opentelemetry.py @DataDog/apm-sdk-capabilities-python
213+
ddtrace/internal/settings/_opentelemetry.py @DataDog/apm-sdk-capabilities-python
211214

212215
ddtrace/internal/sampling.py @DataDog/apm-sdk-capabilities-python
213216
ddtrace/internal/tracemethods.py @DataDog/apm-sdk-capabilities-python
214217
ddtrace/internal/metrics.py @DataDog/apm-sdk-capabilities-python
215218
ddtrace/internal/rate_limiter.py @DataDog/apm-sdk-capabilities-python
216219
ddtrace/runtime/ @DataDog/apm-sdk-capabilities-python
217220
ddtrace/internal/runtime/ @DataDog/apm-sdk-capabilities-python
218-
ddtrace/settings/_otel_remapper.py @DataDog/apm-sdk-capabilities-python
221+
ddtrace/internal/settings/_otel_remapper.py @DataDog/apm-sdk-capabilities-python
219222
tests/integration/test_priority_sampling.py @DataDog/apm-sdk-capabilities-python
220223
tests/integration/test_propagation.py @DataDog/apm-sdk-capabilities-python
221224
tests/runtime/ @DataDog/apm-sdk-capabilities-python
@@ -240,7 +243,7 @@ tests/contrib/azure_functions @DataDog/serverless
240243
tests/contrib/azure_functions_eventhubs @DataDog/serverless @DataDog/apm-serverless
241244
tests/contrib/azure_functions_servicebus @DataDog/serverless @DataDog/apm-serverless
242245
tests/contrib/azure_servicebus @DataDog/serverless @DataDog/apm-serverless
243-
tests/internal/test_serverless.py @DataDog/apm-core-python @DataDog/apm-serverless
246+
tests/internal/test_serverless.py @DataDog/apm-core-python @DataDog/apm-serverless @DataDog/asm-python
244247
tests/snapshots/tests.contrib.aws_lambda.*. @DataDog/apm-serverless
245248
tests/snapshots/tests.contrib.azure_eventhubs.* @DataDog/serverless @DataDog/apm-serverless
246249
tests/snapshots/tests.contrib.azure_functions.* @DataDog/serverless @DataDog/apm-serverless
@@ -251,3 +254,8 @@ tests/snapshots/tests.contrib.azure_servicebus.* @DataDog/serverless
251254
# Data Streams Monitoring
252255
ddtrace/internal/datastreams @DataDog/data-streams-monitoring
253256
tests/datastreams @DataDog/data-streams-monitoring
257+
258+
# ASM (order matters)
259+
tests/**/*appsec* @DataDog/asm-python
260+
tests/**/*iast* @DataDog/asm-python
261+
tests/tracer/test_propagation.py @DataDog/apm-sdk-capabilities-python @DataDog/asm-python

.github/workflows/build_deploy.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -69,8 +69,8 @@ jobs:
6969
needs: [ "compute_version" ]
7070
uses: ./.github/workflows/build_python_3.yml
7171
with:
72-
cibw_build: 'cp38* cp39* cp310* cp311* cp312* cp313* cp314*'
73-
cibw_skip: 'cp38-win_arm64 cp39-win_arm64 cp310-win_arm64 cp314t*'
72+
cibw_build: 'cp39* cp310* cp311* cp312* cp313* cp314*'
73+
cibw_skip: 'cp39-win_arm64 cp310-win_arm64 cp314t*'
7474
library_version: ${{ needs.compute_version.outputs.library_version }}
7575

7676
build_sdist:

.github/workflows/build_python_3.yml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -94,9 +94,6 @@ jobs:
9494
CIBW_BEFORE_ALL_MACOS: rustup target add aarch64-apple-darwin
9595
CIBW_BEFORE_ALL_LINUX: |
9696
if [[ "$(uname -m)-$(uname -i)-$(uname -o | tr '[:upper:]' '[:lower:]')-$(ldd --version 2>&1 | head -n 1 | awk '{print $1}')" != "i686-unknown-linux-musl" ]]; then
97-
if command -v yum &> /dev/null; then
98-
yum install -y libatomic.i686
99-
fi
10097
curl -sSf https://sh.rustup.rs | sh -s -- -y;
10198
fi
10299
CIBW_ENVIRONMENT_LINUX: PATH=$HOME/.cargo/bin:$PATH CMAKE_BUILD_PARALLEL_LEVEL=24 CMAKE_ARGS="-DNATIVE_TESTING=OFF" SETUPTOOLS_SCM_PRETEND_VERSION_FOR_DDTRACE=${{ needs.compute_version.outputs.library_version }}

.github/workflows/django-overhead-profile.yml

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -13,18 +13,10 @@ on:
1313
jobs:
1414
django-overhead-profile:
1515
runs-on: ubuntu-latest
16-
strategy:
17-
matrix:
18-
include:
19-
- suffix: "-v1"
20-
stack_v2: "0"
21-
- suffix: "-v2"
22-
stack_v2: "1"
2316
env:
2417
PREFIX: ${{ github.workspace }}/prefix
2518
DD_CODE_ORIGIN_FOR_SPANS_ENABLED: "1"
2619
DD_PROFILING_ENABLED: "1"
27-
DD_PROFILING_STACK_V2_ENABLED: ${{ matrix.stack_v2 }}
2820
DD_PROFILING_OUTPUT_PPROF: ${{ github.workspace }}/prefix/artifacts/ddtrace_profile
2921
DD_EXCEPTION_REPLAY_ENABLED: "1"
3022
defaults:
@@ -50,5 +42,5 @@ jobs:
5042
5143
- uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2
5244
with:
53-
name: django-overhead-profile${{ matrix.suffix }}
45+
name: django-overhead-profile
5446
path: ${{ github.workspace }}/prefix/artifacts

.github/workflows/generate-package-versions.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -81,14 +81,14 @@ jobs:
8181

8282
- name: Install Python dependencies
8383
run: |
84-
python -m pip install --upgrade pip
84+
python -m pip install --upgrade "pip<25.3"
8585
pip install packaging
8686
pip install requests
8787
pip install riot==0.20.1
8888
pip install PyYAML
8989
pip install ddtrace
9090
# Install latest pip-tools from main branch for Python 3.14 compatibility
91-
pip install --upgrade git+https://github.com/jazzband/pip-tools.git@934b46a8795554f994b984ac743957f8458a29d6
91+
pip install --upgrade git+https://github.com/jazzband/pip-tools.git@1c2692b7f45a94d93e3f4bb252da3fd711ad08a9 # v7.5.1
9292
9393
- name: Run regenerate-riot-latest
9494
run: scripts/regenerate-riot-latest.sh

.github/workflows/profiling-native.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ jobs:
2121
matrix:
2222
os: [ubuntu-24.04]
2323
python-version: ["3.8", "3.9", "3.10", "3.11", "3.12", "3.13"]
24+
memcpy-mode: ["default", "fast"]
2425
sanitizer: ["safety", "thread", "valgrind"]
2526

2627
steps:
@@ -49,4 +50,10 @@ jobs:
4950
# DEV: We currently have tests in dd_wrapper and stack_v2, setting
5051
# stack_v2 here will also run tests in dd_wrapper. Revisit this when
5152
# that changes.
53+
if [ "${{matrix.memcpy-mode}}" == "fast" ]; then
54+
export ECHION_USE_FAST_COPY_MEMORY=1
55+
else
56+
export ECHION_USE_FAST_COPY_MEMORY=0
57+
fi
58+
5259
./ddtrace/internal/datadog/profiling/build_standalone.sh --${{matrix.sanitizer}} RelWithDebInfo stack_v2_test

.github/workflows/requirements-locks.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,8 @@ jobs:
2828
run: pyenv global 3.10 3.8 3.9 3.11 3.12 3.13 3.14
2929

3030
- name: Install Dependencies
31-
run: pip install --upgrade pip && pip install riot==0.20.1 && pip install toml==0.10.2
31+
# Keep pip at <25.3 until https://github.com/jazzband/pip-tools/issues/2252 is resolved
32+
run: pip install --upgrade "pip<25.3" && pip install riot==0.20.1 && pip install toml==0.10.2
3233

3334
- name: Generate riot locks
3435
run: scripts/compile-and-prune-test-requirements

.github/workflows/system-tests.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ jobs:
4545
persist-credentials: false
4646
repository: 'DataDog/system-tests'
4747
# Automatically managed, use scripts/update-system-tests-version to update
48-
ref: '58dc99266c404d0e04868a5817c61fad360cc4cb'
48+
ref: '6d02d86d456377cca26e10adb80249d0ee5108fb'
4949

5050
- name: Download wheels to binaries directory
5151
uses: actions/download-artifact@d3f86a106a0bac45b974a628896c90dbdf5c8093 # v4.3.0
@@ -90,7 +90,7 @@ jobs:
9090
persist-credentials: false
9191
repository: 'DataDog/system-tests'
9292
# Automatically managed, use scripts/update-system-tests-version to update
93-
ref: '58dc99266c404d0e04868a5817c61fad360cc4cb'
93+
ref: '6d02d86d456377cca26e10adb80249d0ee5108fb'
9494

9595
- name: Build runner
9696
uses: ./.github/actions/install_runner
@@ -275,7 +275,7 @@ jobs:
275275
persist-credentials: false
276276
repository: 'DataDog/system-tests'
277277
# Automatically managed, use scripts/update-system-tests-version to update
278-
ref: '58dc99266c404d0e04868a5817c61fad360cc4cb'
278+
ref: '6d02d86d456377cca26e10adb80249d0ee5108fb'
279279
- name: Download wheels to binaries directory
280280
uses: actions/download-artifact@d3f86a106a0bac45b974a628896c90dbdf5c8093 # v4.3.0
281281
with:

.github/workflows/unit_tests.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ jobs:
1616
matrix:
1717
os: [ubuntu-latest, windows-latest, macos-latest]
1818
# Keep this in sync with hatch.toml
19-
python-version: ["3.8", "3.10", "3.12", "3.14"]
19+
python-version: ["3.10", "3.12", "3.14"]
2020

2121
steps:
2222
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2

.gitlab-ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ variables:
1414
DD_VPA_TEMPLATE: "vpa-template-cpu-p70-10percent-2x-oom-min-cap"
1515
# CI_DEBUG_SERVICES: "true"
1616
# Automatically managed, use scripts/update-system-tests-version to update
17-
SYSTEM_TESTS_REF: "58dc99266c404d0e04868a5817c61fad360cc4cb"
17+
SYSTEM_TESTS_REF: "6d02d86d456377cca26e10adb80249d0ee5108fb"
1818

1919
default:
2020
interruptible: true

0 commit comments

Comments
 (0)