Skip to content

Commit a30e8f7

Browse files
committed
build(native): isolate libdatadog v41 upgrade
1 parent 6cd9c2d commit a30e8f7

11 files changed

Lines changed: 9 additions & 108 deletions

File tree

.github/workflows/system-tests.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -95,11 +95,11 @@ jobs:
9595
serverless-system-tests:
9696
needs: [serverless-system-tests-build-layer]
9797
# Automatically managed, use scripts/update-system-tests-version to update
98-
uses: DataDog/system-tests/.github/workflows/system-tests.yml@17a45f60c216a142ced110eb15f63a4acc2a0b4a
98+
uses: DataDog/system-tests/.github/workflows/system-tests.yml@692e9462ef7296cf1224c0d2bd3a3623a1bfe590
9999
secrets: inherit
100100
with:
101101
library: python_lambda
102-
ref: '17a45f60c216a142ced110eb15f63a4acc2a0b4a'
102+
ref: '692e9462ef7296cf1224c0d2bd3a3623a1bfe590'
103103
binaries_artifact: serverless_system_tests_binaries
104104
scenarios_groups: lambda_end_to_end
105105
skip_empty_scenarios: true
@@ -126,22 +126,22 @@ jobs:
126126
if: github.event_name != 'schedule' || github.event.repository.fork == false
127127
needs: [integration-frameworks-combine-wheels]
128128
# Automatically managed, use scripts/update-system-tests-version to update
129-
uses: DataDog/system-tests/.github/workflows/system-tests.yml@17a45f60c216a142ced110eb15f63a4acc2a0b4a
129+
uses: DataDog/system-tests/.github/workflows/system-tests.yml@692e9462ef7296cf1224c0d2bd3a3623a1bfe590
130130
secrets: inherit
131131
with:
132132
library: python
133-
ref: '17a45f60c216a142ced110eb15f63a4acc2a0b4a'
133+
ref: '692e9462ef7296cf1224c0d2bd3a3623a1bfe590'
134134
scenarios: INTEGRATION_FRAMEWORKS
135135
binaries_artifact: integration-frameworks-wheels
136136
push_to_test_optimization: true
137137

138138
tracer-release:
139139
needs:
140140
- download-s3-wheels
141-
uses: DataDog/system-tests/.github/workflows/system-tests.yml@17a45f60c216a142ced110eb15f63a4acc2a0b4a
141+
uses: DataDog/system-tests/.github/workflows/system-tests.yml@692e9462ef7296cf1224c0d2bd3a3623a1bfe590
142142
with:
143143
library: python
144-
ref: '17a45f60c216a142ced110eb15f63a4acc2a0b4a'
144+
ref: '692e9462ef7296cf1224c0d2bd3a3623a1bfe590'
145145
binaries_artifact: wheels-manylinux_x86_64
146146
desired_execution_time: 900
147147
scenarios_groups: tracer-release

.gitlab-ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ variables:
1818
DD_VPA_TEMPLATE: "vpa-template-cpu-p70-10percent-2x-oom-min-cap"
1919
# CI_DEBUG_SERVICES: "true"
2020
# Automatically managed, use scripts/update-system-tests-version to update
21-
SYSTEM_TESTS_REF: "17a45f60c216a142ced110eb15f63a4acc2a0b4a"
21+
SYSTEM_TESTS_REF: "692e9462ef7296cf1224c0d2bd3a3623a1bfe590"
2222

2323
# Profiling native build image (built from dd/images/dd-trace-py/profiling_native)
2424
PROFILING_NATIVE_IMAGE: "registry.ddbuild.io/dd-trace-py:v103334885-be1888c-profiling_native"

ddtrace/internal/native/_native.pyi

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -640,9 +640,6 @@ class TraceExporterBuilder:
640640
:param process_tags: Comma-separated list of key:value process tags (e.g., "key1:val1,key2:val2").
641641
"""
642642
...
643-
def set_tracer_tags(self, tracer_tags: list[str]) -> TraceExporterBuilder:
644-
"""Set tracer tags on the OTLP metrics resource."""
645-
...
646643
def set_tracer_version(self, version: str) -> TraceExporterBuilder:
647644
"""
648645
Set the tracer version of the TraceExporter.
@@ -711,10 +708,6 @@ class TraceExporterBuilder:
711708
:param bucket_size_ns: The size of stats bucket in nanoseconds.
712709
"""
713710

714-
def set_additional_metric_tag_keys(self, tag_keys: list[str]) -> TraceExporterBuilder:
715-
"""Set span tag keys included in computed stats."""
716-
...
717-
718711
def enable_client_side_stats_obfuscation(self) -> TraceExporterBuilder:
719712
"""
720713
Obfuscate client side stats buckets in the client instead of in the agent.

ddtrace/internal/settings/_config.py

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -658,11 +658,6 @@ def __init__(self) -> None:
658658
"DD_TRACE_STATS_COMPUTATION_ENABLED", trace_compute_stats_default, asbool
659659
)
660660
self._otel_stats_computation_enabled = _get_config("OTEL_TRACES_SPAN_METRICS_ENABLED", None, asbool)
661-
self._trace_stats_additional_tags = _get_config(
662-
"DD_TRACE_STATS_ADDITIONAL_TAGS",
663-
[],
664-
lambda value: [tag.strip() for tag in value.split(",") if tag.strip()],
665-
)
666661
self._client_side_stats_obfuscation = _get_config(
667662
"_DD_TRACE_STATS_COMPUTATION_EXPERIMENTAL_CLIENT_OBFUSCATION_ENABLED", True, asbool
668663
)

ddtrace/internal/settings/_supported_configurations.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -667,7 +667,6 @@
667667
"DD_TRACE_SQLITE_ENABLED",
668668
"DD_TRACE_STARLETTE_ENABLED",
669669
"DD_TRACE_STARTUP_LOGS",
670-
"DD_TRACE_STATS_ADDITIONAL_TAGS",
671670
"DD_TRACE_STATS_COMPUTATION_ENABLED",
672671
"DD_TRACE_STRUCTLOG_ENABLED",
673672
"DD_TRACE_SUBPROCESS_ENABLED",

ddtrace/internal/writer/writer.py

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,6 @@
6969
log = get_logger(__name__)
7070

7171
LOG_ERR_INTERVAL = 60
72-
_OTLP_TRACER_TAG_RESERVED_KEYS = frozenset({"service", "env", "version", "runtime_id", "runtime-id"})
7372

7473

7574
def _safelog(log_func: Callable[..., None], msg: str, *args, **kwargs) -> None:
@@ -762,16 +761,6 @@ def _build_base_exporter_builder(
762761
builder.set_app_version(config.version)
763762
if test_session_token is not None:
764763
builder.set_test_session_token(test_session_token)
765-
if otlp_metrics_enabled:
766-
tracer_tags = [
767-
f"{key}:{value}"
768-
for key, value in sorted(config.tags.items())
769-
if key.lower() not in _OTLP_TRACER_TAG_RESERVED_KEYS and value
770-
]
771-
if tracer_tags:
772-
builder.set_tracer_tags(tracer_tags)
773-
if config._trace_stats_additional_tags:
774-
builder.set_additional_metric_tag_keys(config._trace_stats_additional_tags)
775764
# OTLP trace metrics require the native concentrator regardless of DD_TRACE_STATS_COMPUTATION_ENABLED.
776765
if otlp_metrics_enabled or (compute_stats_enabled and not stats_opt_out):
777766
if otlp_metrics_enabled:

releasenotes/notes/fix-otlp-trace-metrics-attributes-83cad1e1cdcc65c7.yaml

Lines changed: 0 additions & 4 deletions
This file was deleted.

src/native/data_pipeline/mod.rs

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -80,14 +80,6 @@ impl TraceExporterBuilderPy {
8080
Ok(slf.into())
8181
}
8282

83-
fn set_tracer_tags(
84-
mut slf: PyRefMut<'_, Self>,
85-
tracer_tags: Vec<String>,
86-
) -> PyResult<Py<Self>> {
87-
slf.try_as_mut()?.set_tracer_tags(tracer_tags);
88-
Ok(slf.into())
89-
}
90-
9183
fn set_tracer_version(mut slf: PyRefMut<'_, Self>, version: &'_ str) -> PyResult<Py<Self>> {
9284
slf.try_as_mut()?.set_tracer_version(version);
9385
Ok(slf.into())
@@ -160,14 +152,6 @@ impl TraceExporterBuilderPy {
160152
Ok(slf.into())
161153
}
162154

163-
fn set_additional_metric_tag_keys(
164-
mut slf: PyRefMut<'_, Self>,
165-
tag_keys: Vec<String>,
166-
) -> PyResult<Py<Self>> {
167-
slf.try_as_mut()?.set_additional_metric_tag_keys(tag_keys);
168-
Ok(slf.into())
169-
}
170-
171155
fn enable_client_side_stats_obfuscation(mut slf: PyRefMut<'_, Self>) -> PyResult<Py<Self>> {
172156
slf.try_as_mut()?.enable_client_side_stats_obfuscation();
173157
Ok(slf.into())

supported-configurations.json

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -5000,14 +5000,6 @@
50005000
"default": "false"
50015001
}
50025002
],
5003-
"DD_TRACE_STATS_ADDITIONAL_TAGS": [
5004-
{
5005-
"implementation": "B",
5006-
"type": "string",
5007-
"default": null,
5008-
"experimental": true
5009-
}
5010-
],
50115003
"DD_TRACE_STATS_COMPUTATION_ENABLED": [
50125004
{
50135005
"implementation": "C",

tests/opentelemetry/test_otlp_trace.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -148,8 +148,8 @@ def log_message(self, *args):
148148
# No InstrumentationScope is emitted (redundant with the resource's telemetry.sdk.* attributes).
149149
assert "scope" not in scope_metrics
150150
# Service identity lives on the resource.
151-
resource_attrs = {a["key"]: a["value"] for a in resource_metrics["resource"]["attributes"]}
152-
assert resource_attrs["service.name"]["stringValue"] == "test-svc"
151+
resource_attrs = {a["key"]: a["value"]["stringValue"] for a in resource_metrics["resource"]["attributes"]}
152+
assert resource_attrs["service.name"] == "test-svc"
153153
assert metric["histogram"]["dataPoints"], "No data points in exported histogram"
154154

155155

0 commit comments

Comments
 (0)