Skip to content

Commit abba259

Browse files
authored
Merge branch 'main' into munir/make-log-injection-boolean-again
2 parents ca42e4b + 924c8da commit abba259

File tree

264 files changed

+4932
-3653
lines changed

Some content is hidden

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

264 files changed

+4932
-3653
lines changed

.github/CODEOWNERS

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -139,30 +139,19 @@ tests/profiling_v2 @DataDog/profiling-python
139139
# MLObs
140140
ddtrace/llmobs/ @DataDog/ml-observability
141141
ddtrace/contrib/internal/openai @DataDog/ml-observability
142-
ddtrace/contrib/_openai.py @DataDog/ml-observability
143142
ddtrace/contrib/internal/langchain @DataDog/ml-observability
144-
ddtrace/contrib/_langchain.py @DataDog/ml-observability
145143
ddtrace/contrib/internal/botocore/services/bedrock.py @DataDog/ml-observability
146144
ddtrace/contrib/internal/botocore/services/bedrock_agents.py @DataDog/ml-observability
147145
ddtrace/contrib/botocore/services/bedrock.py @DataDog/ml-observability
148146
ddtrace/contrib/internal/anthropic @DataDog/ml-observability
149-
ddtrace/contrib/_anthropic.py @DataDog/ml-observability
150147
ddtrace/contrib/internal/google_generativeai @DataDog/ml-observability
151-
ddtrace/contrib/_google_generativeai.py @DataDog/ml-observability
152148
ddtrace/contrib/internal/google_genai @DataDog/ml-observability
153-
ddtrace/contrib/_google_genai.py @DataDog/ml-observability
154149
ddtrace/contrib/internal/vertexai @DataDog/ml-observability
155-
ddtrace/contrib/_vertexai.py @DataDog/ml-observability
156150
ddtrace/contrib/internal/langgraph @DataDog/ml-observability
157-
ddtrace/contrib/_langgraph.py @DataDog/ml-observability
158151
ddtrace/contrib/internal/crewai @DataDog/ml-observability
159-
ddtrace/contrib/_crewai.py @DataDog/ml-observability
160152
ddtrace/contrib/internal/openai_agents @DataDog/ml-observability
161-
ddtrace/contrib/_openai_agents.py @DataDog/ml-observability
162153
ddtrace/contrib/internal/litellm @DataDog/ml-observability
163-
ddtrace/contrib/_litellm.py @DataDog/ml-observability
164154
ddtrace/contrib/internal/pydantic_ai @DataDog/ml-observability
165-
ddtrace/contrib/_pydantic_ai.py @DataDog/ml-observability
166155
tests/llmobs @DataDog/ml-observability
167156
tests/contrib/openai @DataDog/ml-observability
168157
tests/contrib/langchain @DataDog/ml-observability

.github/workflows/build_python_3.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ jobs:
3333
MATRIX_INCLUDE=$(
3434
{
3535
cibuildwheel --print-build-identifiers --platform linux --arch x86_64,i686 | jq -cR '{only: ., os: "ubuntu-latest"}' \
36-
&& cibuildwheel --print-build-identifiers --platform linux --arch aarch64 | jq -cR '{only: ., os: "arm-4core-linux-ubuntu24.04"}' \
36+
&& cibuildwheel --print-build-identifiers --platform linux --arch aarch64 | jq -cR '{only: ., os: "ubuntu-24.04-arm"}' \
3737
&& cibuildwheel --print-build-identifiers --platform windows --arch AMD64,x86 | jq -cR '{only: ., os: "windows-latest"}' \
3838
&& cibuildwheel --print-build-identifiers --platform macos --arch x86_64 | jq -cR '{only: ., os: "macos-13"}' \
3939
&& cibuildwheel --print-build-identifiers --platform macos --arch arm64 | jq -cR '{only: ., os: "macos-latest"}'
@@ -59,19 +59,19 @@ jobs:
5959
fetch-depth: 0
6060

6161
- uses: actions/setup-python@a26af69be951a213d495a4c3e4e4022e16d87065 # v5.6.0
62-
if: matrix.os != 'arm-4core-linux-ubuntu24.04'
62+
if: matrix.os != 'ubuntu-24.04-arm'
6363
name: Install Python
6464
with:
6565
python-version: '3.8'
6666

6767
- name: Set up QEMU
68-
if: runner.os == 'Linux' && matrix.os != 'arm-4core-linux-ubuntu24.04'
68+
if: runner.os == 'Linux' && matrix.os != 'ubuntu-24.04-arm'
6969
uses: docker/setup-qemu-action@29109295f81e9208d7d86ff1c6c12d2833863392 # v3.6.0
7070
with:
7171
platforms: all
7272

7373
- name: Build wheels arm64
74-
if: always() && matrix.os == 'arm-4core-linux-ubuntu24.04'
74+
if: always() && matrix.os == 'ubuntu-24.04-arm'
7575
run: pipx run cibuildwheel==2.22.0 --only ${{ matrix.only }}
7676
env:
7777
CIBW_SKIP: ${{ inputs.cibw_skip }}
@@ -106,7 +106,7 @@ jobs:
106106
# CIBW_BUILD_VERBOSITY_MACOS: 3
107107

108108
- name: Build wheels
109-
if: always() && matrix.os != 'arm-4core-linux-ubuntu24.04'
109+
if: always() && matrix.os != 'ubuntu-24.04-arm'
110110
uses: pypa/cibuildwheel@faf86a6ed7efa889faf6996aa23820831055001a # v2.23.3
111111
with:
112112
only: ${{ matrix.only }}

.github/workflows/system-tests.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -277,7 +277,7 @@ jobs:
277277
persist-credentials: false
278278
repository: 'DataDog/system-tests'
279279
# Automatically managed, use scripts/update-system-tests-version to update
280-
ref: 'e79a35571dedbe2e9bc5f4731a3cf172f589b032'
280+
ref: '13b08f0faf7673656bd68dad5c142ad04eddee69'
281281
- name: Checkout dd-trace-py
282282
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
283283
with:

.gitlab-ci.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,8 @@ variables:
1010
REPO_NOTIFICATION_CHANNEL: "#apm-python-release"
1111
RELEASE_ALLOW_TEST_FAILURES: false
1212
RELEASE_ALLOW_BENCHMARK_FAILURES: false
13-
DD_DISABLE_VPA: true
13+
# VPA Template configuration
14+
DD_VPA_TEMPLATE: "vpa-template-cpu-p70-10percent-2x-oom-min-cap"
1415
# CI_DEBUG_SERVICES: "true"
1516

1617
default:
@@ -76,7 +77,7 @@ microbenchmarks:
7677
variables:
7778
PARENT_PIPELINE_ID: $CI_PIPELINE_ID
7879
# Disable VPA for benchmarks
79-
KUBERNETES_POD_ANNOTATIONS_1: vpa.datadoghq.com/updateMode=Off
80+
DD_DISABLE_VPA: true
8081

8182
macrobenchmarks:
8283
stage: benchmarks
@@ -85,7 +86,7 @@ macrobenchmarks:
8586
include: .gitlab/benchmarks/macrobenchmarks.yml
8687
variables:
8788
# Disable VPA for benchmarks
88-
KUBERNETES_POD_ANNOTATIONS_1: vpa.datadoghq.com/updateMode=Off
89+
DD_DISABLE_VPA: true
8990
allow_failure: true
9091
rules:
9192
- if: $CI_PIPELINE_SOURCE == "schedule"

.gitlab/benchmarks/bp-runner.microbenchmarks.fail-on-breach.yml

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -153,31 +153,31 @@ experiments:
153153
# httppropagationextract
154154
- name: httppropagationextract-all_styles_all_headers
155155
thresholds:
156-
- execution_time < 0.07 ms
156+
- execution_time < 0.10 ms
157157
- max_rss_usage < 31.00 MB
158158
- name: httppropagationextract-b3_headers
159159
thresholds:
160160
- execution_time < 0.02 ms
161161
- max_rss_usage < 31.00 MB
162162
- name: httppropagationextract-b3_single_headers
163163
thresholds:
164-
- execution_time < 0.01 ms
164+
- execution_time < 0.02 ms
165165
- max_rss_usage < 31.00 MB
166166
- name: httppropagationextract-datadog_tracecontext_tracestate_not_propagated_on_trace_id_no_match
167167
thresholds:
168-
- execution_time < 0.06 ms
168+
- execution_time < 0.08 ms
169169
- max_rss_usage < 31.00 MB
170170
- name: httppropagationextract-datadog_tracecontext_tracestate_propagated_on_trace_id_match
171171
thresholds:
172-
- execution_time < 0.06 ms
172+
- execution_time < 0.08 ms
173173
- max_rss_usage < 31.00 MB
174174
- name: httppropagationextract-empty_headers
175175
thresholds:
176176
- execution_time < 0.01 ms
177177
- max_rss_usage < 31.00 MB
178178
- name: httppropagationextract-full_t_id_datadog_headers
179179
thresholds:
180-
- execution_time < 0.02 ms
180+
- execution_time < 0.03 ms
181181
- max_rss_usage < 31.00 MB
182182
- name: httppropagationextract-invalid_priority_header
183183
thresholds:
@@ -217,7 +217,7 @@ experiments:
217217
- max_rss_usage < 31.00 MB
218218
- name: httppropagationextract-tracecontext_headers
219219
thresholds:
220-
- execution_time < 0.03 ms
220+
- execution_time < 0.04 ms
221221
- max_rss_usage < 31.00 MB
222222
- name: httppropagationextract-valid_headers_all
223223
thresholds:
@@ -275,35 +275,35 @@ experiments:
275275
# httppropagationinject
276276
- name: httppropagationinject-ids_only
277277
thresholds:
278-
- execution_time < 0.02 ms
278+
- execution_time < 0.03 ms
279279
- max_rss_usage < 31.00 MB
280280
- name: httppropagationinject-with_all
281281
thresholds:
282-
- execution_time < 0.03 ms
282+
- execution_time < 0.04 ms
283283
- max_rss_usage < 31.00 MB
284284
- name: httppropagationinject-with_dd_origin
285285
thresholds:
286-
- execution_time < 0.02 ms
286+
- execution_time < 0.03 ms
287287
- max_rss_usage < 31.00 MB
288288
- name: httppropagationinject-with_priority_and_origin
289289
thresholds:
290-
- execution_time < 0.02 ms
290+
- execution_time < 0.04 ms
291291
- max_rss_usage < 31.00 MB
292292
- name: httppropagationinject-with_sampling_priority
293293
thresholds:
294-
- execution_time < 0.02 ms
294+
- execution_time < 0.03 ms
295295
- max_rss_usage < 31.00 MB
296296
- name: httppropagationinject-with_tags
297297
thresholds:
298-
- execution_time < 0.02 ms
298+
- execution_time < 0.04 ms
299299
- max_rss_usage < 31.00 MB
300300
- name: httppropagationinject-with_tags_invalid
301301
thresholds:
302-
- execution_time < 0.03 ms
302+
- execution_time < 0.04 ms
303303
- max_rss_usage < 31.00 MB
304304
- name: httppropagationinject-with_tags_max_size
305305
thresholds:
306-
- execution_time < 0.03 ms
306+
- execution_time < 0.04 ms
307307
- max_rss_usage < 31.00 MB
308308

309309
# iast_aspects

.gitlab/one-pipeline.locked.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
# DO NOT EDIT THIS FILE MANUALLY
22
# This file is auto-generated by automation.
33
include:
4-
- remote: https://gitlab-templates.ddbuild.io/libdatadog/one-pipeline/ca/d44e89797a5a47c43cf712193abefe2178a004176606f7e01b77d1ec49a3ef5e/one-pipeline.yml
4+
- remote: https://gitlab-templates.ddbuild.io/libdatadog/one-pipeline/ca/a0486057161f85a77e39ad2aa60ac66bb52414696d9b3dd87177df1057b11295/one-pipeline.yml

.readthedocs.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ build:
33
os: ubuntu-22.04
44
tools:
55
python: "3.10"
6-
rust: "1.78"
6+
rust: "1.86"
77
commands:
88
- git fetch --unshallow || true
99
- curl -L https://github.com/pypa/hatch/releases/download/hatch-v1.12.0/hatch-x86_64-unknown-linux-gnu.tar.gz | tar zx

benchmarks/core_api/scenario.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ def listener(*_):
4040

4141
# If we don't support "core.on_all", just double up the registered listeners to try
4242
# and make the comparison semi-equal
43-
core.on(self.CUSTOM_EVENT_NAME, listener)
43+
core.on(CUSTOM_EVENT_NAME, listener)
4444
core.on("context.started.with_data", listener)
4545
core.on("context.ended.with_data", listener)
4646

@@ -50,12 +50,12 @@ def listener(*_):
5050
def core_dispatch(loops):
5151
"""Measure the cost to dispatch an event on the hub"""
5252
for _ in range(loops):
53-
core.dispatch(self.CUSTOM_EVENT_NAME, (5, 6, 7, 8))
53+
core.dispatch(CUSTOM_EVENT_NAME, (5, 6, 7, 8))
5454

5555
def core_dispatch_with_results(loops):
5656
"""Measure the cost to dispatch an event on the hub"""
5757
for _ in range(loops):
58-
core.dispatch_with_results(self.CUSTOM_EVENT_NAME, (5, 6, 7, 8))
58+
core.dispatch_with_results(CUSTOM_EVENT_NAME, (5, 6, 7, 8))
5959

6060
def context_with_data(loops):
6161
"""Measure the cost of creating and ending a new context"""

ddtrace/_hooks.py

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,17 +2,13 @@
22
from copy import deepcopy
33
from typing import Any # noqa:F401
44
from typing import Callable # noqa:F401
5+
from typing import DefaultDict # noqa:F401
56
from typing import Optional # noqa:F401
67
from typing import Set # noqa:F401
78

89
from .internal.logger import get_logger
910

1011

11-
try:
12-
from typing import DefaultDict # noqa:F401
13-
except ImportError:
14-
from collections import defaultdict as DefaultDict
15-
1612
log = get_logger(__name__)
1713

1814

ddtrace/_logger.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,6 @@ def configure_ddtrace_logger():
5858
def _configure_ddtrace_debug_logger(logger):
5959
if get_config("DD_TRACE_DEBUG", False, asbool):
6060
logger.setLevel(logging.DEBUG)
61-
logger.debug("debug mode has been enabled for the ddtrace logger")
6261

6362

6463
def _configure_ddtrace_file_logger(logger):

0 commit comments

Comments
 (0)