Skip to content

Commit 7161b77

Browse files
committed
DD_IAST_USE_ROOT_SPAN disabled by default
1 parent 92ac7da commit 7161b77

File tree

6 files changed

+6
-5
lines changed

6 files changed

+6
-5
lines changed

tests/appsec/iast/aspects/test_add_aspect.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -343,7 +343,7 @@ def test_propagate_ranges_with_no_context(caplog):
343343
)
344344

345345
reset_context()
346-
with override_global_config(dict(_iast_debug=True, _iast_use_root_span=False)), caplog.at_level(logging.DEBUG):
346+
with override_global_config(dict(_iast_debug=True)), caplog.at_level(logging.DEBUG):
347347
result_2 = add_aspect(result, "another_string")
348348

349349
create_context()

tests/appsec/iast/conftest.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ def check_native_code_exception_in_each_python_aspect_test(request, caplog):
111111
if "skip_iast_check_logs" in request.keywords:
112112
yield
113113
else:
114-
with override_global_config(dict(_iast_debug=True, _iast_use_root_span=False)), caplog.at_level(logging.DEBUG):
114+
with override_global_config(dict(_iast_debug=True)), caplog.at_level(logging.DEBUG):
115115
yield
116116

117117
for record in caplog.get_records("call"):

tests/appsec/iast/taint_tracking/test_native_taint_range.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -572,7 +572,7 @@ def test_race_conditions_reset_contexts_threads(caplog, telemetry_writer):
572572
"""we want to validate context is working correctly among multiple request and no race condition creating and
573573
destroying contexts
574574
"""
575-
with override_global_config(dict(_iast_debug=True, _iast_use_root_span=False)), caplog.at_level(logging.DEBUG):
575+
with override_global_config(dict(_iast_debug=True)), caplog.at_level(logging.DEBUG):
576576
pool = ThreadPool(processes=3)
577577
results_async = [pool.apply_async(reset_contexts_loop) for _ in range(20)]
578578
_ = [res.get() for res in results_async]

tests/appsec/iast/taint_tracking/test_taint_tracking.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ def test_taint_object_with_no_context_should_be_noop():
6969
@pytest.mark.skip_iast_check_logs
7070
def test_propagate_ranges_with_no_context(caplog):
7171
reset_context()
72-
with override_global_config(dict(_iast_debug=True, _iast_use_root_span=False)), caplog.at_level(logging.DEBUG):
72+
with override_global_config(dict(_iast_debug=True)), caplog.at_level(logging.DEBUG):
7373
string_input = taint_pyobject(
7474
pyobject="abcde", source_name="abcde", source_value="abcde", source_origin=OriginType.PARAMETER
7575
)

tests/appsec/integrations/fastapi_tests/test_fastapi_appsec_iast.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ def check_native_code_exception_in_each_fastapi_test(request, caplog, telemetry_
9595
yield
9696
else:
9797
caplog.set_level(logging.DEBUG)
98-
with override_global_config(dict(_iast_debug=True, _iast_use_root_span=False)), caplog.at_level(logging.DEBUG):
98+
with override_global_config(dict(_iast_debug=True)), caplog.at_level(logging.DEBUG):
9999
yield
100100

101101
log_messages = [record.msg for record in caplog.get_records("call")]

tests/telemetry/test_writer.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -532,6 +532,7 @@ def test_app_started_event_configuration_override(test_agent_session, run_python
532532
{"name": "DD_VERSION", "origin": "default", "value": None},
533533
{"name": "_DD_APPSEC_DEDUPLICATION_ENABLED", "origin": "default", "value": True},
534534
{"name": "_DD_IAST_LAZY_TAINT", "origin": "default", "value": False},
535+
{"name": "_DD_IAST_USE_ROOT_SPAN", "origin": "default", "value": False},
535536
{"name": "_DD_TRACE_WRITER_LOG_ERROR_PAYLOADS", "origin": "default", "value": False},
536537
{"name": "instrumentation_source", "origin": "code", "value": "manual"},
537538
{"name": "python_build_gnu_type", "origin": "unknown", "value": sysconfig.get_config_var("BUILD_GNU_TYPE")},

0 commit comments

Comments
 (0)