Skip to content

Commit f3fffa1

Browse files
.
1 parent 4c1dc4d commit f3fffa1

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

tests/integrations/django/test_db_transactions.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -413,7 +413,7 @@ def test_db_no_autocommit_executemany(sentry_init, client, capture_events):
413413
@pytest_mark_django_db_decorator(transaction=True)
414414
def test_db_no_autocommit_rollback_execute(sentry_init, client, capture_events):
415415
sentry_init(
416-
integrations=[DjangoIntegration()],
416+
integrations=[DjangoIntegration(database_transaction_spans=True)],
417417
traces_sample_rate=1.0,
418418
)
419419

@@ -471,7 +471,7 @@ def test_db_no_autocommit_rollback_execute(sentry_init, client, capture_events):
471471
@pytest_mark_django_db_decorator(transaction=True)
472472
def test_db_no_autocommit_rollback_executemany(sentry_init, client, capture_events):
473473
sentry_init(
474-
integrations=[DjangoIntegration()],
474+
integrations=[DjangoIntegration(database_transaction_spans=True)],
475475
traces_sample_rate=1.0,
476476
)
477477

@@ -694,7 +694,7 @@ def test_db_atomic_executemany(sentry_init, client, capture_events):
694694
@pytest_mark_django_db_decorator(transaction=True)
695695
def test_db_atomic_rollback_execute(sentry_init, client, capture_events):
696696
sentry_init(
697-
integrations=[DjangoIntegration()],
697+
integrations=[DjangoIntegration(database_transaction_spans=True)],
698698
send_default_pii=True,
699699
traces_sample_rate=1.0,
700700
)
@@ -753,7 +753,7 @@ def test_db_atomic_rollback_execute(sentry_init, client, capture_events):
753753
@pytest_mark_django_db_decorator(transaction=True)
754754
def test_db_atomic_rollback_executemany(sentry_init, client, capture_events):
755755
sentry_init(
756-
integrations=[DjangoIntegration()],
756+
integrations=[DjangoIntegration(database_transaction_spans=True)],
757757
send_default_pii=True,
758758
traces_sample_rate=1.0,
759759
)
@@ -835,7 +835,7 @@ def test_db_atomic_rollback_executemany(sentry_init, client, capture_events):
835835
@pytest_mark_django_db_decorator(transaction=True)
836836
def test_db_atomic_execute_exception(sentry_init, client, capture_events):
837837
sentry_init(
838-
integrations=[DjangoIntegration()],
838+
integrations=[DjangoIntegration(database_transaction_spans=True)],
839839
send_default_pii=True,
840840
traces_sample_rate=1.0,
841841
)
@@ -894,7 +894,7 @@ def test_db_atomic_execute_exception(sentry_init, client, capture_events):
894894
@pytest_mark_django_db_decorator(transaction=True)
895895
def test_db_atomic_executemany_exception(sentry_init, client, capture_events):
896896
sentry_init(
897-
integrations=[DjangoIntegration()],
897+
integrations=[DjangoIntegration(database_transaction_spans=True)],
898898
send_default_pii=True,
899899
traces_sample_rate=1.0,
900900
)

0 commit comments

Comments
 (0)