@@ -111,7 +111,7 @@ class Address(Base):
111111 Session = sessionmaker (bind = engine ) # noqa: N806
112112 session = Session ()
113113
114- with sentry_sdk .start_span (name = "test_transaction" ):
114+ with sentry_sdk .start_span (name = "test_transaction" , sampled = True ):
115115 with session .begin_nested ():
116116 session .query (Person ).first ()
117117
@@ -185,7 +185,7 @@ class Address(Base):
185185 Session = sessionmaker (bind = engine ) # noqa: N806
186186 session = Session ()
187187
188- with sentry_sdk .start_span (name = "test_transaction" ):
188+ with sentry_sdk .start_span (name = "test_transaction" , sampled = True ):
189189 with session .begin_nested ():
190190 session .query (Person ).first ()
191191
@@ -304,7 +304,7 @@ def test_query_source_disabled(sentry_init, capture_events):
304304
305305 events = capture_events ()
306306
307- with sentry_sdk .start_span (name = "test_transaction" ):
307+ with sentry_sdk .start_span (name = "test_transaction" , sampled = True ):
308308 Base = declarative_base () # noqa: N806
309309
310310 class Person (Base ):
@@ -356,7 +356,7 @@ def test_query_source_enabled(sentry_init, capture_events, enable_db_query_sourc
356356
357357 events = capture_events ()
358358
359- with sentry_sdk .start_span (name = "test_transaction" ):
359+ with sentry_sdk .start_span (name = "test_transaction" , sampled = True ):
360360 Base = declarative_base () # noqa: N806
361361
362362 class Person (Base ):
@@ -403,7 +403,7 @@ def test_query_source(sentry_init, capture_events):
403403 )
404404 events = capture_events ()
405405
406- with sentry_sdk .start_span (name = "test_transaction" ):
406+ with sentry_sdk .start_span (name = "test_transaction" , sampled = True ):
407407 Base = declarative_base () # noqa: N806
408408
409409 class Person (Base ):
@@ -473,7 +473,7 @@ def test_query_source_with_module_in_search_path(sentry_init, capture_events):
473473 query_first_model_from_session ,
474474 )
475475
476- with sentry_sdk .start_span (name = "test_transaction" ):
476+ with sentry_sdk .start_span (name = "test_transaction" , sampled = True ):
477477 Base = declarative_base () # noqa: N806
478478
479479 class Person (Base ):
@@ -531,7 +531,7 @@ def test_no_query_source_if_duration_too_short(sentry_init, capture_events):
531531 )
532532 events = capture_events ()
533533
534- with sentry_sdk .start_span (name = "test_transaction" ):
534+ with sentry_sdk .start_span (name = "test_transaction" , sampled = True ):
535535 Base = declarative_base () # noqa: N806
536536
537537 class Person (Base ):
@@ -599,7 +599,7 @@ def test_query_source_if_duration_over_threshold(sentry_init, capture_events):
599599 )
600600 events = capture_events ()
601601
602- with sentry_sdk .start_span (name = "test_transaction" ):
602+ with sentry_sdk .start_span (name = "test_transaction" , sampled = True ):
603603 Base = declarative_base () # noqa: N806
604604
605605 class Person (Base ):
0 commit comments