Skip to content

Commit e3e6599

Browse files
committed
Merge remote-tracking branch 'origin/main' into chore/native-lock
2 parents 8ca6523 + 2a46a7d commit e3e6599

File tree

94 files changed

+2919
-1517
lines changed

Some content is hidden

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

94 files changed

+2919
-1517
lines changed

.github/workflows/system-tests.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ jobs:
4242
persist-credentials: false
4343
repository: 'DataDog/system-tests'
4444
# Automatically managed, use scripts/update-system-tests-version to update
45-
ref: '00ef7aa109379a58145417d79ed174d93ec7c19b'
45+
ref: '13b08f0faf7673656bd68dad5c142ad04eddee69'
4646

4747
- name: Checkout dd-trace-py
4848
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
@@ -96,7 +96,7 @@ jobs:
9696
persist-credentials: false
9797
repository: 'DataDog/system-tests'
9898
# Automatically managed, use scripts/update-system-tests-version to update
99-
ref: '00ef7aa109379a58145417d79ed174d93ec7c19b'
99+
ref: '13b08f0faf7673656bd68dad5c142ad04eddee69'
100100

101101
- name: Build runner
102102
uses: ./.github/actions/install_runner
@@ -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: '00ef7aa109379a58145417d79ed174d93ec7c19b'
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
@@ -57,7 +57,6 @@ def configure_ddtrace_logger():
5757
def _configure_ddtrace_debug_logger(logger):
5858
if get_config("DD_TRACE_DEBUG", False, asbool):
5959
logger.setLevel(logging.DEBUG)
60-
logger.debug("debug mode has been enabled for the ddtrace logger")
6160

6261

6362
def _configure_ddtrace_file_logger(logger):

ddtrace/_trace/context.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -214,7 +214,7 @@ def dd_user_id(self, value: Optional[Text]) -> None:
214214
self._meta[_USER_ID_KEY] = str(base64.b64encode(bytes(value, encoding="utf-8")), encoding="utf-8")
215215

216216
@property
217-
def _trace_id_64bits(self):
217+
def _trace_id_64bits(self) -> Optional[int]:
218218
"""Return the trace ID as a 64-bit value."""
219219
if self.trace_id is None:
220220
return None

ddtrace/_trace/filters.py

Lines changed: 4 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,14 @@
11
import abc
2-
from typing import TYPE_CHECKING # noqa:F401
3-
from typing import List # noqa:F401
4-
from typing import Optional # noqa:F401
2+
from typing import List
3+
from typing import Optional
54

65
from ddtrace._trace.processor import TraceProcessor
7-
8-
9-
if TYPE_CHECKING: # pragma: no cover
10-
from ddtrace._trace.span import Span # noqa:F401
6+
from ddtrace._trace.span import Span
117

128

139
class TraceFilter(TraceProcessor):
1410
@abc.abstractmethod
15-
def process_trace(self, trace):
16-
# type: (List[Span]) -> Optional[List[Span]]
11+
def process_trace(self, trace: List[Span]) -> Optional[List[Span]]:
1712
"""Processes a trace.
1813
1914
None can be returned to prevent the trace from being exported.

0 commit comments

Comments
 (0)