diff --git a/CHANGELOG.next.toml b/CHANGELOG.next.toml index 72d79628e7..4336f30b02 100644 --- a/CHANGELOG.next.toml +++ b/CHANGELOG.next.toml @@ -10,3 +10,15 @@ # references = ["smithy-rs#920"] # meta = { "breaking" = false, "tada" = false, "bug" = false } # author = "rcoh" + +[[aws-sdk-rust]] +message = "Log a debug event when a retry is going to be peformed" +references = ["smithy-rs#1352"] +meta = { "breaking" = false, "tada" = false, "bug" = false } +author = "jdisanti" + +[[smithy-rs]] +message = "Log a debug event when a retry is going to be peformed" +references = ["smithy-rs#1352"] +meta = { "breaking" = false, "tada" = false, "bug" = false } +author = "jdisanti" diff --git a/rust-runtime/aws-smithy-client/src/retry.rs b/rust-runtime/aws-smithy-client/src/retry.rs index faea04b930..d8751cbe15 100644 --- a/rust-runtime/aws-smithy-client/src/retry.rs +++ b/rust-runtime/aws-smithy-client/src/retry.rs @@ -313,6 +313,13 @@ impl RetryHandler { return None; } }; + + tracing::debug!( + "attempt {} failed with {:?}; retrying after {:?}", + self.local.attempts, + retry_kind, + dur + ); let sleep_future = sleep.sleep(dur); let fut = async move { sleep_future.await;