diff --git a/tests/cws/test_thread_context_sharing.py b/tests/cws/test_thread_context_sharing.py index eb381c8e66a..5e893695d76 100644 --- a/tests/cws/test_thread_context_sharing.py +++ b/tests/cws/test_thread_context_sharing.py @@ -10,7 +10,7 @@ from .utils import CWS_EVENTS_PATH, cws_event_mentioning, cws_self_test_succeeded -@features.not_reported +@features.thread_context_sharing @scenarios.thread_context_sharing class Test_ThreadContextSharing: """A tracer that shares the trace_id/span_id of the span active on a thread with system-probe diff --git a/utils/_features.py b/utils/_features.py index 0cd8b4acf13..581ee080fcc 100644 --- a/utils/_features.py +++ b/utils/_features.py @@ -3653,5 +3653,17 @@ def otel_traces_sampler_arg(test_object): """ return _mark_test_object(test_object, feature_id=642, owner=_Owner.sdk_capabilities) + @staticmethod + def thread_context_sharing(test_object): + """Thread context sharing with system-probe (CWS trace correlation) + + Workload Protection (the security agent) reads the trace and span IDs + for events triggered by a traced application from the application's published + thread context record (OTEP 4947). + + https://feature-parity.us1.prod.dog/#/?feature=647 + """ + return _mark_test_object(test_object, feature_id=647, owner=_Owner.asm) + features = _Features()