@@ -441,9 +441,7 @@ async def test_query_source_disabled(
441441 "traces_sample_rate" : 1.0 ,
442442 "enable_db_query_source" : False ,
443443 "db_query_source_threshold_ms" : 0 ,
444- "_experiments" : {
445- "trace_lifecycle" : "stream" if span_streaming else "static" ,
446- },
444+ "trace_lifecycle" : "stream" if span_streaming else "static" ,
447445 }
448446
449447 sentry_init (** sentry_options )
@@ -516,9 +514,7 @@ async def test_query_source_enabled(
516514 "integrations" : [AioMySQLIntegration ()],
517515 "traces_sample_rate" : 1.0 ,
518516 "db_query_source_threshold_ms" : 0 ,
519- "_experiments" : {
520- "trace_lifecycle" : "stream" if span_streaming else "static" ,
521- },
517+ "trace_lifecycle" : "stream" if span_streaming else "static" ,
522518 }
523519 if enable_db_query_source is not None :
524520 sentry_options ["enable_db_query_source" ] = enable_db_query_source
@@ -591,9 +587,7 @@ async def test_query_source(sentry_init, capture_events, capture_items, span_str
591587 traces_sample_rate = 1.0 ,
592588 enable_db_query_source = True ,
593589 db_query_source_threshold_ms = 0 ,
594- _experiments = {
595- "trace_lifecycle" : "stream" if span_streaming else "static" ,
596- },
590+ trace_lifecycle = "stream" if span_streaming else "static" ,
597591 )
598592
599593 if span_streaming :
@@ -692,9 +686,7 @@ async def test_no_query_source_if_duration_too_short(
692686 traces_sample_rate = 1.0 ,
693687 enable_db_query_source = True ,
694688 db_query_source_threshold_ms = 100 ,
695- _experiments = {
696- "trace_lifecycle" : "stream" if span_streaming else "static" ,
697- },
689+ trace_lifecycle = "stream" if span_streaming else "static" ,
698690 )
699691
700692 if span_streaming :
@@ -789,9 +781,7 @@ async def test_query_source_if_duration_over_threshold(
789781 traces_sample_rate = 1.0 ,
790782 enable_db_query_source = True ,
791783 db_query_source_threshold_ms = 100 ,
792- _experiments = {
793- "trace_lifecycle" : "stream" if span_streaming else "static" ,
794- },
784+ trace_lifecycle = "stream" if span_streaming else "static" ,
795785 )
796786
797787 if span_streaming :
@@ -915,9 +905,7 @@ async def test_span_origin(sentry_init, capture_events, capture_items, span_stre
915905 sentry_init (
916906 integrations = [AioMySQLIntegration ()],
917907 traces_sample_rate = 1.0 ,
918- _experiments = {
919- "trace_lifecycle" : "stream" if span_streaming else "static" ,
920- },
908+ trace_lifecycle = "stream" if span_streaming else "static" ,
921909 )
922910
923911 if span_streaming :
@@ -972,9 +960,7 @@ async def test_multiline_query_description_normalized(
972960 sentry_init (
973961 integrations = [AioMySQLIntegration ()],
974962 traces_sample_rate = 1.0 ,
975- _experiments = {
976- "trace_lifecycle" : "stream" if span_streaming else "static" ,
977- },
963+ trace_lifecycle = "stream" if span_streaming else "static" ,
978964 )
979965
980966 if span_streaming :
@@ -1099,9 +1085,7 @@ async def test_db_data_on_spans(
10991085 sentry_init (
11001086 integrations = [AioMySQLIntegration ()],
11011087 traces_sample_rate = 1.0 ,
1102- _experiments = {
1103- "trace_lifecycle" : "stream" if span_streaming else "static" ,
1104- },
1088+ trace_lifecycle = "stream" if span_streaming else "static" ,
11051089 )
11061090
11071091 if span_streaming :
0 commit comments