-
Notifications
You must be signed in to change notification settings - Fork 616
feat(huey): Migrate Huey integration to spans-first tracing #6399
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
base: master
Are you sure you want to change the base?
Changes from all commits
b16696b
14a8cc8
092af9d
857ba47
f815ea4
e1e73be
60abc3b
7d33b81
97fb86c
8672b30
099ae1e
2814292
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -32,6 +32,13 @@ | |
| except ImportError: | ||
| AIOHttpHttpException = None | ||
|
|
||
| try: | ||
| from huey.exceptions import CancelExecution, RetryTask, TaskLockedException | ||
|
|
||
| HueyControlFlowExceptions = (CancelExecution, RetryTask, TaskLockedException) | ||
| except ImportError: | ||
| HueyControlFlowExceptions = None | ||
|
|
||
| from typing import TYPE_CHECKING | ||
|
|
||
| import sentry_sdk | ||
|
|
@@ -1994,6 +2001,12 @@ def should_be_treated_as_error(ty: "Any", value: "Any") -> bool: | |
| if AIOHttpHttpException and isinstance(value, AIOHttpHttpException): | ||
| return False | ||
|
|
||
| # Huey also has exceptions that are raised for control flow reasons, not | ||
| # because there's an actual error. This check, similar to the aiohttp one above, | ||
| # is to prevent accidentally overwriting a status of "ok" with "error" | ||
| if HueyControlFlowExceptions and isinstance(value, HueyControlFlowExceptions): | ||
| return False | ||
|
Comment on lines
+2004
to
+2008
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Can you break out handling of Span first changes look good and it'd be worth reviewing the other changes separately.
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Related issue: #6408 (comment) |
||
|
|
||
| return True | ||
|
|
||
|
|
||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.