retryer

package
v1.3000030.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 2, 2023 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DefaultImdsRetries = 1
)

Variables

This section is empty.

Functions

func GetDefaultRetryNumber added in v1.300028.0

func GetDefaultRetryNumber() int

Types

type IMDSRetryer added in v1.300028.0

type IMDSRetryer struct {
	client.DefaultRetryer
}

func NewIMDSRetryer added in v1.300028.0

func NewIMDSRetryer(imdsRetries int) IMDSRetryer

NewIMDSRetryer allows us to retry imds errors otel component layer retries should come from aws config settings translator layer should come from env vars see GetDefaultRetryNumber()

func (IMDSRetryer) ShouldRetry added in v1.300028.0

func (r IMDSRetryer) ShouldRetry(req *request.Request) bool

type LogThrottleRetryer

type LogThrottleRetryer struct {
	Log telegraf.Logger

	client.DefaultRetryer
	// contains filtered or unexported fields
}

func NewLogThrottleRetryer

func NewLogThrottleRetryer(logger telegraf.Logger) *LogThrottleRetryer

func (*LogThrottleRetryer) ShouldRetry

func (r *LogThrottleRetryer) ShouldRetry(req *request.Request) bool

func (*LogThrottleRetryer) Stop

func (r *LogThrottleRetryer) Stop()

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL