Skip to content

Remove deprecated Raven pip dependency.#3581

Merged
bjester merged 1 commit intolearningequality:unstablefrom
rtibbles:never_flitting_still_is_sitting
Aug 29, 2022
Merged

Remove deprecated Raven pip dependency.#3581
bjester merged 1 commit intolearningequality:unstablefrom
rtibbles:never_flitting_still_is_sitting

Conversation

@rtibbles
Copy link
Copy Markdown
Member

Summary

Description of the change(s) you made

Removes the Python Raven dependency that was still being used, in favour of the sentry_sdk.

Manual verification steps performed

I followed the migration guide here: https://docs.sentry.io/platforms/python/migration/

def handle_server_error(request):
client.captureException(stack=True, tags={"url": request.path})
def handle_server_error(e, request):
capture_exception(e, tags={"url": request.path})
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

I'm having trouble identifying whether tags is supported here. The documentation details a different example

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Yeah, I had to go to the source code to verify.

Ultimately it gets set on a transient scope using this function: https://github.com/getsentry/sentry-python/blob/master/sentry_sdk/scope.py#L451

@bjester bjester merged commit 269e7e0 into learningequality:unstable Aug 29, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants