Currently we use the different hooks to log on different events like beforeRetry and afterResponse. But we've come to a point where we would like to add a beforeRequest hook with a logging statement in there. The problem comes in with that if you have two retries on a request, you get a beforeRequest log with every retry along with a beforeRetry log. So you get log spam.
We would like to try to avoid this by looking at the retryCount so that we don't log anything if this is a retry request, but it doesn't seem to be accessible in this hook unlike most of the others. Is there something that I'm missing or will this need to be a feature request?
...
Pay now to fund the work behind this issue.
Get updates on progress being made.
Maintainer is rewarded once the issue is completed.
You're funding impactful open source efforts
You want to contribute to this effort
You want to get funding like this too