From 38d094d03ef4ceebe42273bb13d830ec7416d7f1 Mon Sep 17 00:00:00 2001 From: Munir Abdinur Date: Thu, 30 Jan 2025 21:11:33 -0500 Subject: [PATCH] fix 128bit tests too --- tests/parametric/test_128_bit_traceids.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/tests/parametric/test_128_bit_traceids.py b/tests/parametric/test_128_bit_traceids.py index f3da39b0e3..e17ce71110 100644 --- a/tests/parametric/test_128_bit_traceids.py +++ b/tests/parametric/test_128_bit_traceids.py @@ -1,7 +1,7 @@ import pytest from utils.parametric.spec.trace import find_first_span_in_trace_payload, find_trace, find_only_span -from utils import missing_feature, context, scenarios, features +from utils import missing_feature, irrelevant, context, scenarios, features parametrize = pytest.mark.parametrize POWER_2_64 = 18446744073709551616 @@ -213,6 +213,7 @@ def test_datadog_128_bit_generation_enabled_by_default(self, test_agent, test_li @missing_feature(context.library == "cpp", reason="propagation style not supported") @missing_feature(context.library == "ruby", reason="not implemented") + @irrelevant(context.library > "python@2.20.0", reason="3.x set `b3` instead of `B3 single header`") @pytest.mark.parametrize( "library_env", [{"DD_TRACE_PROPAGATION_STYLE": "B3 single header", "DD_TRACE_128_BIT_TRACEID_GENERATION_ENABLED": "false"}], @@ -236,6 +237,7 @@ def test_b3single_128_bit_propagation(self, test_agent, test_library): @missing_feature(context.library == "cpp", reason="propagation style not supported") @missing_feature(context.library == "ruby", reason="not implemented") + @irrelevant(context.library > "python@2.20.0", reason="3.x set `b3` instead of `B3 single header`") @pytest.mark.parametrize( "library_env", [{"DD_TRACE_PROPAGATION_STYLE": "B3 single header", "DD_TRACE_128_BIT_TRACEID_GENERATION_ENABLED": "true"}], @@ -257,6 +259,7 @@ def test_b3single_128_bit_propagation_and_generation(self, test_agent, test_libr @missing_feature( context.library == "ruby", reason="Issue: Ruby doesn't support case-insensitive distributed headers" ) + @irrelevant(context.library > "python@2.20.0", reason="3.x set `b3` instead of `B3 single header`") @pytest.mark.parametrize( "library_env", [{"DD_TRACE_PROPAGATION_STYLE": "B3 single header", "DD_TRACE_128_BIT_TRACEID_GENERATION_ENABLED": "false"}], @@ -274,6 +277,7 @@ def test_b3single_128_bit_generation_disabled(self, test_agent, test_library): @missing_feature(context.library == "cpp", reason="propagation style not supported") @missing_feature(context.library == "ruby", reason="not implemented") + @irrelevant(context.library > "python@2.20.0", reason="3.x set `b3` instead of `B3 single header`") @pytest.mark.parametrize( "library_env", [{"DD_TRACE_PROPAGATION_STYLE": "B3 single header", "DD_TRACE_128_BIT_TRACEID_GENERATION_ENABLED": "true"}],