diff --git a/client.go b/client.go index c8cb17c87..db71d771e 100644 --- a/client.go +++ b/client.go @@ -1233,6 +1233,9 @@ func (c *Client) PerformRequest(ctx context.Context, method, path string, params defer res.Body.Close() } + // Tracing + c.dumpResponse(res) + // Check for errors if err := checkResponse((*http.Request)(req), res, ignoreErrors...); err != nil { // No retry if request succeeded @@ -1241,9 +1244,6 @@ func (c *Client) PerformRequest(ctx context.Context, method, path string, params return resp, err } - // Tracing - c.dumpResponse(res) - // We successfully made a request with this connection conn.MarkAsHealthy()