@@ -74,7 +74,6 @@ async def _clean_pg():
7474async def test_connect (sentry_init , capture_events ) -> None :
7575 sentry_init (
7676 integrations = [AsyncPGIntegration ()],
77- traces_sample_rate = 1.0 ,
7877 _experiments = {"record_sql_params" : True },
7978 )
8079 events = capture_events ()
@@ -97,7 +96,6 @@ async def test_connect(sentry_init, capture_events) -> None:
9796async def test_execute (sentry_init , capture_events ) -> None :
9897 sentry_init (
9998 integrations = [AsyncPGIntegration ()],
100- traces_sample_rate = 1.0 ,
10199 _experiments = {"record_sql_params" : True },
102100 )
103101 events = capture_events ()
@@ -163,7 +161,6 @@ async def test_execute(sentry_init, capture_events) -> None:
163161async def test_execute_many (sentry_init , capture_events ) -> None :
164162 sentry_init (
165163 integrations = [AsyncPGIntegration ()],
166- traces_sample_rate = 1.0 ,
167164 _experiments = {"record_sql_params" : True },
168165 )
169166 events = capture_events ()
@@ -202,7 +199,6 @@ async def test_execute_many(sentry_init, capture_events) -> None:
202199async def test_record_params (sentry_init , capture_events ) -> None :
203200 sentry_init (
204201 integrations = [AsyncPGIntegration (record_params = True )],
205- traces_sample_rate = 1.0 ,
206202 _experiments = {"record_sql_params" : True },
207203 )
208204 events = capture_events ()
@@ -243,7 +239,6 @@ async def test_record_params(sentry_init, capture_events) -> None:
243239async def test_cursor (sentry_init , capture_events ) -> None :
244240 sentry_init (
245241 integrations = [AsyncPGIntegration ()],
246- traces_sample_rate = 1.0 ,
247242 _experiments = {"record_sql_params" : True },
248243 )
249244 events = capture_events ()
@@ -308,7 +303,6 @@ async def test_cursor(sentry_init, capture_events) -> None:
308303async def test_cursor_manual (sentry_init , capture_events ) -> None :
309304 sentry_init (
310305 integrations = [AsyncPGIntegration ()],
311- traces_sample_rate = 1.0 ,
312306 _experiments = {"record_sql_params" : True },
313307 )
314308 events = capture_events ()
@@ -375,7 +369,6 @@ async def test_cursor_manual(sentry_init, capture_events) -> None:
375369async def test_prepared_stmt (sentry_init , capture_events ) -> None :
376370 sentry_init (
377371 integrations = [AsyncPGIntegration ()],
378- traces_sample_rate = 1.0 ,
379372 _experiments = {"record_sql_params" : True },
380373 )
381374 events = capture_events ()
@@ -425,7 +418,6 @@ async def test_prepared_stmt(sentry_init, capture_events) -> None:
425418async def test_connection_pool (sentry_init , capture_events ) -> None :
426419 sentry_init (
427420 integrations = [AsyncPGIntegration ()],
428- traces_sample_rate = 1.0 ,
429421 _experiments = {"record_sql_params" : True },
430422 )
431423 events = capture_events ()
@@ -497,7 +489,7 @@ async def test_connection_pool(sentry_init, capture_events) -> None:
497489async def test_query_source_disabled (sentry_init , capture_events ):
498490 sentry_options = {
499491 "integrations" : [AsyncPGIntegration ()],
500- "enable_tracing " : True ,
492+ "traces_sample_rate " : 1.0 ,
501493 "enable_db_query_source" : False ,
502494 "db_query_source_threshold_ms" : 0 ,
503495 }
@@ -535,7 +527,7 @@ async def test_query_source_enabled(
535527):
536528 sentry_options = {
537529 "integrations" : [AsyncPGIntegration ()],
538- "enable_tracing " : True ,
530+ "traces_sample_rate " : 1.0 ,
539531 "db_query_source_threshold_ms" : 0 ,
540532 }
541533 if enable_db_query_source is not None :
@@ -571,7 +563,7 @@ async def test_query_source_enabled(
571563async def test_query_source (sentry_init , capture_events ):
572564 sentry_init (
573565 integrations = [AsyncPGIntegration ()],
574- enable_tracing = True ,
566+ traces_sample_rate = 1.0 ,
575567 enable_db_query_source = True ,
576568 db_query_source_threshold_ms = 0 ,
577569 )
@@ -621,7 +613,7 @@ async def test_query_source_with_module_in_search_path(sentry_init, capture_even
621613 """
622614 sentry_init (
623615 integrations = [AsyncPGIntegration ()],
624- enable_tracing = True ,
616+ traces_sample_rate = 1.0 ,
625617 enable_db_query_source = True ,
626618 db_query_source_threshold_ms = 0 ,
627619 )
@@ -667,7 +659,7 @@ async def test_query_source_with_module_in_search_path(sentry_init, capture_even
667659async def test_no_query_source_if_duration_too_short (sentry_init , capture_events ):
668660 sentry_init (
669661 integrations = [AsyncPGIntegration ()],
670- enable_tracing = True ,
662+ traces_sample_rate = 1.0 ,
671663 enable_db_query_source = True ,
672664 db_query_source_threshold_ms = 100 ,
673665 )
@@ -714,7 +706,7 @@ def fake_record_sql_queries(*args, **kwargs):
714706async def test_query_source_if_duration_over_threshold (sentry_init , capture_events ):
715707 sentry_init (
716708 integrations = [AsyncPGIntegration ()],
717- enable_tracing = True ,
709+ traces_sample_rate = 1.0 ,
718710 enable_db_query_source = True ,
719711 db_query_source_threshold_ms = 100 ,
720712 )
0 commit comments