You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
should_retry: fn
{:ok, %{status: status}} when status in [400, 500] -> true
{:ok, _} -> false
{:error, _} -> true
end
I'm running into some timeout issues, which from what I can tell emit {:error, :timeout}. The retry logic in that function clause (the third one) work fine, but I also want to log the occurrence in the console in the form of:
The request to #{url} timed out after #{timeout_seconds}. This will be the #{retry_count} time the request is being retried.
Is there a way to add this type of detailed logging?
Use case: I have an importer that imports a whole bunch of data from various APIs, and the total number of possible URLs that data might be fetched from is in the hundreds. I need to know exactly which endpoints are timing out, and how frequently, so I can troubleshoot on the other end.
The text was updated successfully, but these errors were encountered:
I know we can do this:
I'm running into some timeout issues, which from what I can tell emit
{:error, :timeout}
. The retry logic in that function clause (the third one) work fine, but I also want to log the occurrence in the console in the form of:Is there a way to add this type of detailed logging?
Use case: I have an importer that imports a whole bunch of data from various APIs, and the total number of possible URLs that data might be fetched from is in the hundreds. I need to know exactly which endpoints are timing out, and how frequently, so I can troubleshoot on the other end.
The text was updated successfully, but these errors were encountered: