Struct: retry.Attempt

import "../ibm-cos-sdk-go-v2/aws/retry"

Overview

Attempt is a Smithy Finalize middleware that handles retry attempts using the provided Retryer implementation.

Implemented Interfaces

types.AnalyticsFilter, v4.HTTPPresigner, s3.HTTPPresignerV4, types.MetricsFilter, s3.PresignPost, arn.S3ObjectLambdaARN, types.SelectObjectContentEventStream

Structure Field Summary collapse

Method Summary collapse

Structure Field Details

LogAttempts bool

Enable the logging of retry attempts performed by the SDK. This will include logging retry attempts, unretryable errors, and when max attempts are reached.

OperationMeter metrics.Meter

A Meter instance for recording retry-related metrics.

Method Details

func (r *Attempt) ID() string { return "Retry" }

ID returns the middleware identifier



70
71
72
73
74
75
76
77
// File 'aws/retry/middleware.go', line 70

func (r *Attempt) ID() string { return "Retry" } func (r Attempt) logf(logger logging.Logger, classification logging.Classification, format string, v ...interface{}) { if !r.LogAttempts { return } logger.Logf(classification, format, v...) }