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

[Errors] Use sentry #1956

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

[Errors] Use sentry #1956

wants to merge 1 commit into from

Conversation

Herklos
Copy link
Member

@Herklos Herklos commented May 14, 2022

No description provided.

@github-actions
Copy link

Your preview environment pr-1956-octobot-drakkarsoftware has been deployed.

Preview environment endpoint is available here

scope.set_tag("title", error.title)
scope.set_tag("type", error.type)
scope.set_user({"id": error.metrics_id})
if not sentry_sdk.capture_exception(error.error, scope=scope):
Copy link
Member

Choose a reason for hiding this comment

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

is it async by the way ?

Copy link
Member Author

@Herklos Herklos May 16, 2022

Choose a reason for hiding this comment

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

Sentry spawns a thread in background that sends captures. So this call should be non blocking.

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.

None yet

2 participants