We are using AWS Sns lient to pub/sub. I have found during creating SnsClient we can use reties to define the maximum number of retries. For example,
$args = [
'region' => $region,
'retries' => $retries,
'credentials' => [
'key' => $keyId,
'secret' => $keySecret,
],
'version' => $version,
'http' => [
'connect_timeout' => $connectTimeout,
],
];
$aws = new Sdk($args);
$client = $aws->createSns();
$client->publish(..);
Is there is a way to log the exception if there is some kind of retry used? I mean I wanna control the retry policy using the above code.