Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enhancement: Retryable HTTP Client #49

Closed
wants to merge 4 commits into from
Closed

Enhancement: Retryable HTTP Client #49

wants to merge 4 commits into from

Conversation

tmeckel
Copy link
Contributor

@tmeckel tmeckel commented Jan 12, 2020

This PR contains changes to support a retryable HTTP client backend to make the Azure DevOps Go API more resilient against issues of the Azure DevOps REST API. Furthermore it's now possible to pass a logger implementation to the (constructor) function NewClientWithSettings via the type ClientSettings struct. In addition the derived client implementations have access to this logging implementation because it's accessible via the GetLogger method.

@tmeckel tmeckel changed the title ENHANCEMENT: Retryable HTTP Client Enhancement: Retryable HTTP Client Jan 12, 2020
@tmeckel tmeckel requested a review from tedchamb February 2, 2020 19:19
@nmiodice
Copy link

This would be very well received, especially for this project! https://github.com/microsoft/terraform-provider-azuredevops

@tmeckel
Copy link
Contributor Author

tmeckel commented Apr 29, 2020

This would be very well received, especially for this project! https://github.com/microsoft/terraform-provider-azuredevops

Oh yes, because the Hashicorp client is used in many other Terraform providers and is able to handle common HTTP errors like 429 automatically. The build branch at https://github.com/tiwood/terraform-provider-azuredevops/tree/build which @tiwood and me are using to build and deploy the Terraform provider are includes this improvement already.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants