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

replaced push_scope with new_scope in sentry.py #10416

Conversation

R0gue-one
Copy link
Contributor

@R0gue-one R0gue-one commented Feb 3, 2025

Closes #10381

This PR is a fix

Technical

Replaced the depreciated sentry_sdk.push_scope with sentry_sdk.new_scope in openlibrary/utils/sentry.py

I have replaced sentry_sdk.push_scope calls here
image

Testing

Can view changed files to verify the changes.
No behavioural changes are expected as this is just updating to the new recommended Sentry SDK method.

Stakeholders

@jimchamp @mekarpeles

@github-actions github-actions bot added the Priority: 2 Important, as time permits. [managed] label Feb 3, 2025
Copy link
Collaborator

@jimchamp jimchamp left a comment

Choose a reason for hiding this comment

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

Thanks @R0gue-one! Have confirmed that these changes are working in our testing environment.

@jimchamp jimchamp merged commit 5797208 into internetarchive:master Feb 12, 2025
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Priority: 2 Important, as time permits. [managed]
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Replace deprecated sentry_sdk call
2 participants