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

capture user/org tags in sentry #449

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

capture user/org tags in sentry #449

wants to merge 1 commit into from

Conversation

sravfeyn
Copy link
Member

@sravfeyn sravfeyn commented Dec 6, 2024

This should make it easy to trace 500s when users report issues.

@sravfeyn sravfeyn requested a review from calellowitz December 6, 2024 09:55
@sravfeyn
Copy link
Member Author

sravfeyn commented Dec 6, 2024

@calellowitz

def process_view(self, request, view_func, view_args, view_kwargs):
from sentry_sdk import configure_scope

with configure_scope() as scope:
Copy link
Collaborator

@calellowitz calellowitz Dec 10, 2024

Choose a reason for hiding this comment

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

Why use this pattern instead of the one shown in the docs using get_current_scope or just sentry_sdk.set_tag? Is there a difference between them. I can't actually find this one in the docs.

Copy link
Collaborator

Choose a reason for hiding this comment

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

On further look, it looks like this function is deprecated https://docs.sentry.io/platforms/python/migration/1.x-to-2.x#custom-instrumentation

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.

3 participants