Log total retry attempts and time
rushilsrivastava opened this issue · comments
Is there a way to log the total number of validation attempts made? The InstructorRetryException
exception contains the total number of attempts and time taken, but I'm hoping to log this total number of retries with time taken, including successful validations, for analytical purposes.
you can add callbacks in tenacityhttps://useinstructor.com/concepts/retrying/#retry-callbacks
Would you be open to a PR, including some more Instructor specific information, like total retries, and completion time, etc. within create_with_completion
?
depends on where that data goes and how you plan to document it!
Closing this due to inactivity