@@ -637,6 +637,7 @@ class ConfigTest extends DDSpecification {
637637 System . setProperty(PREFIX + PROPAGATION_STYLE_INJECT , " " )
638638 System . setProperty(PREFIX + TRACE_LONG_RUNNING_ENABLED , " invalid" )
639639 System . setProperty(PREFIX + TRACE_LONG_RUNNING_FLUSH_INTERVAL , " invalid" )
640+ System . setProperty(PREFIX + TRACE_EXPERIMENTAL_FEATURES_ENABLED , " " )
640641
641642 when :
642643 def config = new Config ()
@@ -666,6 +667,7 @@ class ConfigTest extends DDSpecification {
666667 config. tracePropagationStylesToExtract. toList() == [DATADOG , TRACECONTEXT , BAGGAGE ]
667668 config. tracePropagationStylesToInject. toList() == [DATADOG , TRACECONTEXT , BAGGAGE ]
668669 config. longRunningTraceEnabled == false
670+ config. experimentalFeaturesEnabled == []. toSet()
669671 }
670672
671673 def " sys props and env vars overrides for trace_agent_port and agent_port_legacy as expected" () {
@@ -1928,6 +1930,17 @@ class ConfigTest extends DDSpecification {
19281930 config. globalTags == [env :" test" , aKey :" aVal" , bKey :" bVal" ]
19291931 }
19301932
1933+ def " verify behavior of DD_TRACE_EXPERIMENTAL_FEATURE_ENABLED when value is 'all'" () {
1934+ setup :
1935+ environmentVariables. set(" DD_TRACE_EXPERIMENTAL_FEATURES_ENABLED" , " all" )
1936+
1937+ when :
1938+ def config = new Config ()
1939+
1940+ then :
1941+ config. experimentalFeaturesEnabled == [" DD_TAGS" , " DD_LOGS_INJECTION" ]. toSet()
1942+ }
1943+
19311944 def " detect if agent is configured using default values" () {
19321945 setup :
19331946 if (host != null ) {
0 commit comments