-
Notifications
You must be signed in to change notification settings - Fork 204
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
fix: improve error handling and logging for eval insertions #2854
Conversation
except Exception: | ||
logger.exception( | ||
"Failed to insert evaluation " | ||
f"for span_id={evaluation.SubjectId.span_id}" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This was causing #2841. Nested sessions are working otherwise.
except InsertEvaluationError as error: | ||
logger.exception(f"Failed to insert evaluation: {str(error)}") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
i think this printing is automatic, so it would be a duplication
except InsertEvaluationError as error: | |
logger.exception(f"Failed to insert evaluation: {str(error)}") | |
except InsertEvaluationError: | |
logger.exception(f"Failed to insert evaluation") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The more granular error message is included in the stacktrace but not the log messages. I think it's worth keeping.
Co-authored-by: Roger Yang <80478925+RogerHYang@users.noreply.github.com>
Co-authored-by: Roger Yang <80478925+RogerHYang@users.noreply.github.com>
Co-authored-by: Roger Yang <80478925+RogerHYang@users.noreply.github.com>
Removes an error in a logging statement causing #2841 and improves error handling and logging.
resolves #2778