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

Stop Using Hub in HttpTransport #3232

Closed
szokeasaurusrex opened this issue Jul 2, 2024 · 0 comments · Fixed by #3247
Closed

Stop Using Hub in HttpTransport #3232

szokeasaurusrex opened this issue Jul 2, 2024 · 0 comments · Fixed by #3247
Assignees

Comments

@szokeasaurusrex
Copy link
Member

We are still using the deprecated Hub in HttpTransport:

from sentry_sdk import Hub
self.hub_cls = Hub

hub = self.hub_cls.current
def send_envelope_wrapper():
# type: () -> None
with hub:

We should stop using the Hub here, as it is deprecated

@szokeasaurusrex szokeasaurusrex self-assigned this Jul 4, 2024
szokeasaurusrex added a commit that referenced this issue Jul 4, 2024
Also, add deprecation warnings for `HttpTransport.hub_cls`.

Fixes #3232
szokeasaurusrex added a commit that referenced this issue Jul 4, 2024
Also, add deprecation warnings for `HttpTransport.hub_cls`.

Fixes #3232
szokeasaurusrex added a commit that referenced this issue Jul 4, 2024
Also, add deprecation warnings for `HttpTransport.hub_cls`.

Fixes #3232
arjennienhuis pushed a commit to arjennienhuis/sentry-python that referenced this issue Sep 30, 2024
Also, add deprecation warnings for `HttpTransport.hub_cls`.

Fixes getsentry#3232
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 a pull request may close this issue.

1 participant