Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(integrations): Support Django 5.0 #2490

Merged
merged 33 commits into from
Nov 14, 2023
Merged

feat(integrations): Support Django 5.0 #2490

merged 33 commits into from
Nov 14, 2023

Conversation

sentrivana
Copy link
Contributor

@sentrivana sentrivana commented Nov 7, 2023

Run our Django test suite on Django 5.0 (beta) and make sure the tests pass.

Fix the way we wrap signal receivers: Django 5.0 introduced async receivers and changed the signature of the Signal._live_receivers method to return both sync and async receivers. We are just ignoring the async receivers in this PR (and not wrapping them to create spans) since ASGI Django doesn't create transactions.

We'll need to change the Django version in tox.ini to 5.0 once it's been released. At the moment we're using the 5.0b1 release.

See #2489
Closes #2383

@sentrivana sentrivana mentioned this pull request Nov 7, 2023
6 tasks
@sentrivana sentrivana changed the title Run tests on Django 5.0 Support Django 5.0 Nov 13, 2023
@sentrivana sentrivana changed the title Support Django 5.0 feat(integrations): Support Django 5.0 Nov 13, 2023
@sentrivana sentrivana marked this pull request as ready for review November 13, 2023 14:27
Copy link
Member

@szokeasaurusrex szokeasaurusrex left a comment

Choose a reason for hiding this comment

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

Looks good, besides the small comments I left regarding deprecated portions of typing

sentry_sdk/integrations/django/asgi.py Outdated Show resolved Hide resolved
sentry_sdk/integrations/django/signals_handlers.py Outdated Show resolved Hide resolved
Copy link
Member

@szokeasaurusrex szokeasaurusrex left a comment

Choose a reason for hiding this comment

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

👍

@sentrivana sentrivana merged commit 44b0244 into master Nov 14, 2023
313 of 314 checks passed
@sentrivana sentrivana deleted the django-5.0 branch November 14, 2023 12:53
@cclauss
Copy link
Contributor

cclauss commented Jun 26, 2024

Please consider something similar for Django v5.1b1 which was released today.

@sentrivana
Copy link
Contributor Author

@cclauss Thanks for the poke! Here: #3207

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.

sentry_sdk.init throws an exception on Django 5.0a1
4 participants