Logging Retry Attempts in Functions Without Context Awareness

Is there a way to log every retry when using a retry? The function that is retried does not have the context if it's invovked through a retry attempt or "try 0"
Was this page helpful?