This repository has been archived by the owner on Nov 1, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 199
Log in agent retries for debugging #263
Labels
enhancement
New feature or request
Comments
FWIW The output from trying to connect to the playground the other day when it was 404-ing for me:
|
ghost
pushed a commit
that referenced
this issue
Mar 2, 2021
In debugging the connection retry issues, I dug into this more. Apparently, some of hyper's connection errors are not mapped to std::io::Error, rendering the existing downcast impl ineffective. As such, this PR makes the following updates: 1. Any request that fails for what `reqwest` calls a `connection` error is considered transient. 2. Updates the retry notify code to use our `warn` macro such that the events show up in application insights. 3. Updates the unit test to demonstrate that failures by trying to connect to `http://localhost:81/`, which shouldn't be listening on any system. 4. Adds a simple unit test to verify with send_retry_default, connections to https://www.microsoft.com work Fixes #263
ghost
locked as resolved and limited conversation to collaborators
Apr 1, 2021
This issue was closed.
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
When making agent HTTP requests with retries and backoff, log what's happening to provide insight and debuggability.
The text was updated successfully, but these errors were encountered: