package retry
Import Path
go.opentelemetry.io/otel/exporters/otlp/otlptrace/otlptracegrpc/internal/retry (on go.dev)
Dependency Relation
imports 4 packages, and imported by 2 packages
Involved Source Files
Package retry provides request retry functionality that can perform
configurable exponential backoff for transient errors and honor any
explicit throttle responses received.
Package-Level Type Names (total 3)
Config defines configuration for retrying batches in case of export failure
using an exponential backoff.
Enabled indicates whether to not retry sending batches in case of
export failure.
InitialInterval the time to wait after the first failure before
retrying.
MaxElapsedTime is the maximum amount of time (including retries) spent
trying to send a request/batch. Once this value is reached, the data
is discarded.
MaxInterval is the upper bound on backoff interval. Once this value is
reached the delay between consecutive retries will always be
`MaxInterval`.
RequestFunc returns a RequestFunc using the evaluate function to determine
if requests can be retried and based on the exponential backoff
configuration of c.
func go.opentelemetry.io/otel/exporters/otlp/otlptrace/otlptracegrpc/internal/otlpconfig.WithRetry(rc Config) otlpconfig.GenericOption
var DefaultConfig
EvaluateFunc returns if an error is retry-able and if an explicit throttle
duration should be honored that was included in the error.
The function must return true if the error argument is retry-able,
otherwise it must return false for the first return parameter.
The function must return a non-zero time.Duration if the error contains
explicit throttle duration that should be honored, otherwise it must return
a zero valued time.Duration.
func Config.RequestFunc(evaluate EvaluateFunc) RequestFunc
RequestFunc wraps a request with retry logic.
func Config.RequestFunc(evaluate EvaluateFunc) RequestFunc
Package-Level Variables (only one)
DefaultConfig are the recommended defaults to use.
![]() |
The pages are generated with Golds v0.8.2. (GOOS=linux GOARCH=amd64) Golds is a Go 101 project developed by Tapir Liu. PR and bug reports are welcome and can be submitted to the issue list. Please follow @zigo_101 (reachable from the left QR code) to get the latest news of Golds. |