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()
Click to show internal directories.
Click to hide internal directories.