Skip to content

chore(django): Remove transaction-based tracing - #7190

Merged
sentrivana merged 6 commits into
major/3.0from
ivana/major/remove-transactions-django
Aug 31, 2026
Merged

chore(django): Remove transaction-based tracing#7190
sentrivana merged 6 commits into
major/3.0from
ivana/major/remove-transactions-django

Conversation

@sentrivana

@sentrivana sentrivana commented Aug 13, 2026

Copy link
Copy Markdown
Contributor

Includes a small hack to make the tests pass until record_sql_queries drops transaction support in a later PR: https://github.com/getsentry/sentry-python/pull/7190/changes#r3879480876

Closes PY-2689
Closes #7085

@linear-code

linear-code Bot commented Aug 13, 2026

Copy link
Copy Markdown

PY-2689

@github-actions

github-actions Bot commented Aug 13, 2026

Copy link
Copy Markdown
Contributor

Codecov Results 📊

109277 passed | ⏭️ 5310 skipped | Total: 114587 | Pass Rate: 95.37% | Execution Time: 361m 39s

📊 Comparison with Base Branch

Metric Change
Total Tests 📈 +9186
Passed Tests 📈 +10355
Failed Tests
Skipped Tests 📉 -1169

All tests are passing successfully.

✅ Patch coverage is 92.59%. Project has 2235 uncovered lines.
✅ Project coverage is 90.56%. Comparing base (base) to head (head).

Files with missing lines (6)
File Patch % Lines
sentry_sdk/integrations/django/init.py 90.91% ⚠️ 3 Missing and 3 partials
sentry_sdk/integrations/django/caching.py 97.22% ⚠️ 1 Missing and 3 partials
sentry_sdk/integrations/django/asgi.py 87.50% ⚠️ 1 Missing and 1 partials
sentry_sdk/integrations/django/middleware.py 66.67% ⚠️ 1 Missing and 1 partials
sentry_sdk/integrations/django/templates.py 87.50% ⚠️ 1 Missing and 1 partials
sentry_sdk/integrations/django/views.py 91.67% ⚠️ 1 Missing and 1 partials
Coverage diff
@@            Coverage Diff             @@
##          main       #PR       +/-##
==========================================
+ Coverage    90.23%    90.56%    +0.33%
==========================================
  Files          193       185        -8
  Lines        25482     23688     -1794
  Branches      9384      8712      -672
==========================================
+ Hits         22994     21453     -1541
- Misses        2488      2235      -253
- Partials      1431      1359       -72

Generated by Codecov Action

@sentrivana
sentrivana force-pushed the ivana/major/remove-transactions-django branch from d18f306 to f561028 Compare August 27, 2026 12:21
Comment on lines +852 to +856
# TODO: remove this once record_sql_queries drops support for old spans
from sentry_sdk.traces import StreamedSpan

if not isinstance(span, StreamedSpan):
return

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The hack mentioned in the description ^

@sentrivana
sentrivana marked this pull request as ready for review August 28, 2026 09:33
@sentrivana
sentrivana requested a review from a team as a code owner August 28, 2026 09:33
@sentrivana
sentrivana merged commit d4be6fd into major/3.0 Aug 31, 2026
129 checks passed
@sentrivana
sentrivana deleted the ivana/major/remove-transactions-django branch August 31, 2026 07:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants