Repository navigation
Conversation
runkelcorey
reviewed
Nov 10, 2026
runkelcorey
left a comment
Contributor
There was a problem hiding this comment.
Why not put sentry_sdk.capture_exception into the logger's .failed() method so that all errors are forwarded if caught?
Contributor
Author
I remember looking at this approach when I was originally putting the Sentry integration in, and deciding not to do it that way, but I can't find any notes on why. It's worth a shot. |
runkelcorey
approved these changes
Nov 25, 2026
Comment on lines
158
to
164
| for tb in traceback.format_tb(exception.__traceback__): | ||
| for line in tb.strip("\n").split("\n"): | ||
| LOGGER.error(f"uuid={self.uuid}, {line.strip('\n')}") | ||
|
|
||
| # Log Exception | ||
| for line in traceback.format_exception_only(exception): | ||
| LOGGER.error(f"uuid={self.uuid}, {line.strip('\n')}") |
Contributor
There was a problem hiding this comment.
I know this isn't the focus of your change, but is this logging the same error twice?
Contributor
|
@MaxAlex please fix CI first |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The S3 view query errors we saw earlier did not appear in Sentry, which was due to the way we have Sentry integrataion configured; events only appear in Sentry if explicitly captured by capture_exception(), which is invoked in OdinJob when it sees an exception. View creation errors are caught, so that a single exception doesn't stop the entire catalog creation process; this adds capture_exception() to those clauses so that Sentry will be aware of view errors.