DockerCLI/vendor/github.com/cenkalti/backoff/v4
Jonathan A. Sternberg 89db01ef97
cli: add otel sdk tracing and metric providers to the core cli
This adds the code used by buildx and compose into the default CLI
program to help normalize the usage of these APIs and allow code reuse
between projects. It also allows these projects to benefit from
improvements or changes that may be made by another team.

At the moment, these APIs are a pretty thin layer on the OTEL SDK. It
configures an additional exporter to a docker endpoint that's used for
usage collection and is only active if the option is configured in
docker desktop.

This also upgrades the OTEL version to v1.19 which is the one being used
by buildkit, buildx, compose, etc.

Signed-off-by: Jonathan A. Sternberg <jonathan.sternberg@docker.com>
2024-03-25 11:11:34 -05:00
..
.gitignore cli: add otel sdk tracing and metric providers to the core cli 2024-03-25 11:11:34 -05:00
LICENSE cli: add otel sdk tracing and metric providers to the core cli 2024-03-25 11:11:34 -05:00
README.md cli: add otel sdk tracing and metric providers to the core cli 2024-03-25 11:11:34 -05:00
backoff.go cli: add otel sdk tracing and metric providers to the core cli 2024-03-25 11:11:34 -05:00
context.go cli: add otel sdk tracing and metric providers to the core cli 2024-03-25 11:11:34 -05:00
exponential.go cli: add otel sdk tracing and metric providers to the core cli 2024-03-25 11:11:34 -05:00
retry.go cli: add otel sdk tracing and metric providers to the core cli 2024-03-25 11:11:34 -05:00
ticker.go cli: add otel sdk tracing and metric providers to the core cli 2024-03-25 11:11:34 -05:00
timer.go cli: add otel sdk tracing and metric providers to the core cli 2024-03-25 11:11:34 -05:00
tries.go cli: add otel sdk tracing and metric providers to the core cli 2024-03-25 11:11:34 -05:00

README.md

Exponential Backoff GoDoc Build Status Coverage Status

This is a Go port of the exponential backoff algorithm from Google's HTTP Client Library for Java.

Exponential backoff is an algorithm that uses feedback to multiplicatively decrease the rate of some process, in order to gradually find an acceptable rate. The retries exponentially increase and stop increasing when a certain threshold is met.

Usage

Import path is github.com/cenkalti/backoff/v4. Please note the version part at the end.

Use https://pkg.go.dev/github.com/cenkalti/backoff/v4 to view the documentation.

Contributing

  • I would like to keep this library as small as possible.
  • Please don't send a PR without opening an issue and discussing it first.
  • If proposed change is not a common use case, I will probably not accept it.