Skip to content

When a client http request is retried, I would like more information in the info! about the retry #486

Description

@philjb

I get message that look like this one:

INFO object_store::client::retry: Encountered transport error backing off for 0.1 seconds, retry 1 of 3: HTTP error: error sending request

While it has included the display of the error HTTP error: error sending request, that is rather vague. I would like more information, specifically what the HttpErrorKind that was determined.

If the request never completes, the last error is returned up to the callee, but the intermediate errors need not be the same as the last one. Let's provide more information.

The reason for retry can be from a server error which is also lacking in details:

INFO object_store::client::retry:Encountered server error, backing off for 0.1 seconds, retry 1 of 3

Here it would be useful to know what the response status code was. Again, it might be different on each retry.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions