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

Replace deprecated sentry_sdk call #10381

Open
jimchamp opened this issue Jan 22, 2025 · 0 comments
Open

Replace deprecated sentry_sdk call #10381

jimchamp opened this issue Jan 22, 2025 · 0 comments
Labels
1-off tasks Needs: Lead Needs: Triage This issue needs triage. The team needs to decide who should own it, what to do, by when. [managed] State: Blocked Work has stopped, waiting for something (Info, Dependent fix, etc. See comments). [managed]

Comments

@jimchamp
Copy link
Collaborator

jimchamp commented Jan 22, 2025

Background

The sentry_sdk.push_scope function has been deprecated and is slated for removal in the next major version. It's unclear when version 3.0 of the SDK will be released, but it is being worked on now.

Sentry documentation offers guidance for replacing push_scope calls, here.

Open Library calls sentry_sdk.push_scope here:

def capture_exception_webpy(self):
with sentry_sdk.push_scope() as scope:
scope.add_event_processor(add_web_ctx_to_event)
sentry_sdk.capture_exception()
def capture_exception(self, ex):
with sentry_sdk.push_scope() as scope:
scope.add_event_processor(add_web_ctx_to_event)
sentry_sdk.capture_exception(ex)

https://github.com/internetarchive/openlibrary/issues?q=state%3Aopen%20label%3A%22State%3A%20Blocked%22 until #10271 is deployed to production.

@jimchamp jimchamp added 1-off tasks Needs: Lead Needs: Triage This issue needs triage. The team needs to decide who should own it, what to do, by when. [managed] State: Blocked Work has stopped, waiting for something (Info, Dependent fix, etc. See comments). [managed] labels Jan 22, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
1-off tasks Needs: Lead Needs: Triage This issue needs triage. The team needs to decide who should own it, what to do, by when. [managed] State: Blocked Work has stopped, waiting for something (Info, Dependent fix, etc. See comments). [managed]
Projects
None yet
Development

No branches or pull requests

1 participant