@@ -74,7 +74,6 @@ async def _clean_pg():
74
74
async def test_connect (sentry_init , capture_events ) -> None :
75
75
sentry_init (
76
76
integrations = [AsyncPGIntegration ()],
77
- traces_sample_rate = 1.0 ,
78
77
_experiments = {"record_sql_params" : True },
79
78
)
80
79
events = capture_events ()
@@ -97,7 +96,6 @@ async def test_connect(sentry_init, capture_events) -> None:
97
96
async def test_execute (sentry_init , capture_events ) -> None :
98
97
sentry_init (
99
98
integrations = [AsyncPGIntegration ()],
100
- traces_sample_rate = 1.0 ,
101
99
_experiments = {"record_sql_params" : True },
102
100
)
103
101
events = capture_events ()
@@ -163,7 +161,6 @@ async def test_execute(sentry_init, capture_events) -> None:
163
161
async def test_execute_many (sentry_init , capture_events ) -> None :
164
162
sentry_init (
165
163
integrations = [AsyncPGIntegration ()],
166
- traces_sample_rate = 1.0 ,
167
164
_experiments = {"record_sql_params" : True },
168
165
)
169
166
events = capture_events ()
@@ -202,7 +199,6 @@ async def test_execute_many(sentry_init, capture_events) -> None:
202
199
async def test_record_params (sentry_init , capture_events ) -> None :
203
200
sentry_init (
204
201
integrations = [AsyncPGIntegration (record_params = True )],
205
- traces_sample_rate = 1.0 ,
206
202
_experiments = {"record_sql_params" : True },
207
203
)
208
204
events = capture_events ()
@@ -243,7 +239,6 @@ async def test_record_params(sentry_init, capture_events) -> None:
243
239
async def test_cursor (sentry_init , capture_events ) -> None :
244
240
sentry_init (
245
241
integrations = [AsyncPGIntegration ()],
246
- traces_sample_rate = 1.0 ,
247
242
_experiments = {"record_sql_params" : True },
248
243
)
249
244
events = capture_events ()
@@ -308,7 +303,6 @@ async def test_cursor(sentry_init, capture_events) -> None:
308
303
async def test_cursor_manual (sentry_init , capture_events ) -> None :
309
304
sentry_init (
310
305
integrations = [AsyncPGIntegration ()],
311
- traces_sample_rate = 1.0 ,
312
306
_experiments = {"record_sql_params" : True },
313
307
)
314
308
events = capture_events ()
@@ -375,7 +369,6 @@ async def test_cursor_manual(sentry_init, capture_events) -> None:
375
369
async def test_prepared_stmt (sentry_init , capture_events ) -> None :
376
370
sentry_init (
377
371
integrations = [AsyncPGIntegration ()],
378
- traces_sample_rate = 1.0 ,
379
372
_experiments = {"record_sql_params" : True },
380
373
)
381
374
events = capture_events ()
@@ -425,7 +418,6 @@ async def test_prepared_stmt(sentry_init, capture_events) -> None:
425
418
async def test_connection_pool (sentry_init , capture_events ) -> None :
426
419
sentry_init (
427
420
integrations = [AsyncPGIntegration ()],
428
- traces_sample_rate = 1.0 ,
429
421
_experiments = {"record_sql_params" : True },
430
422
)
431
423
events = capture_events ()
@@ -497,7 +489,7 @@ async def test_connection_pool(sentry_init, capture_events) -> None:
497
489
async def test_query_source_disabled (sentry_init , capture_events ):
498
490
sentry_options = {
499
491
"integrations" : [AsyncPGIntegration ()],
500
- "enable_tracing " : True ,
492
+ "traces_sample_rate " : 1.0 ,
501
493
"enable_db_query_source" : False ,
502
494
"db_query_source_threshold_ms" : 0 ,
503
495
}
@@ -535,7 +527,7 @@ async def test_query_source_enabled(
535
527
):
536
528
sentry_options = {
537
529
"integrations" : [AsyncPGIntegration ()],
538
- "enable_tracing " : True ,
530
+ "traces_sample_rate " : 1.0 ,
539
531
"db_query_source_threshold_ms" : 0 ,
540
532
}
541
533
if enable_db_query_source is not None :
@@ -571,7 +563,7 @@ async def test_query_source_enabled(
571
563
async def test_query_source (sentry_init , capture_events ):
572
564
sentry_init (
573
565
integrations = [AsyncPGIntegration ()],
574
- enable_tracing = True ,
566
+ traces_sample_rate = 1.0 ,
575
567
enable_db_query_source = True ,
576
568
db_query_source_threshold_ms = 0 ,
577
569
)
@@ -621,7 +613,7 @@ async def test_query_source_with_module_in_search_path(sentry_init, capture_even
621
613
"""
622
614
sentry_init (
623
615
integrations = [AsyncPGIntegration ()],
624
- enable_tracing = True ,
616
+ traces_sample_rate = 1.0 ,
625
617
enable_db_query_source = True ,
626
618
db_query_source_threshold_ms = 0 ,
627
619
)
@@ -667,7 +659,7 @@ async def test_query_source_with_module_in_search_path(sentry_init, capture_even
667
659
async def test_no_query_source_if_duration_too_short (sentry_init , capture_events ):
668
660
sentry_init (
669
661
integrations = [AsyncPGIntegration ()],
670
- enable_tracing = True ,
662
+ traces_sample_rate = 1.0 ,
671
663
enable_db_query_source = True ,
672
664
db_query_source_threshold_ms = 100 ,
673
665
)
@@ -714,7 +706,7 @@ def fake_record_sql_queries(*args, **kwargs):
714
706
async def test_query_source_if_duration_over_threshold (sentry_init , capture_events ):
715
707
sentry_init (
716
708
integrations = [AsyncPGIntegration ()],
717
- enable_tracing = True ,
709
+ traces_sample_rate = 1.0 ,
718
710
enable_db_query_source = True ,
719
711
db_query_source_threshold_ms = 100 ,
720
712
)
0 commit comments