You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
'doc' => 'Set to true to gather transfer statistics on requests sent. Alternatively, you can provide an associative array with the following keys: retries: (bool) Set to false to disable reporting on retries attempted; http: (bool) Set to true to enable collecting statistics from lower level HTTP adapters (e.g., values returned in GuzzleHttp\TransferStats). HTTP handlers must support an http_stats_receiver option for this to have an effect; timer: (bool) Set to true to enable a command timer that reports the total wall clock time spent on an operation in seconds.',
'fn' => [__CLASS__, '_apply_stats'],
],
Therefore, I think the following code sets stats.retries to false.
Apologies for the confusion. I've contacted our documentation team to get the description for the retries sub-option of stats updated.
You are correct in that stats defaults to false, however, the retries description is technically correct— retries in that context is a sub-option of stats and by default it is set to true when stats is enabled. That's what is happening in the referenced code (lines 911-914 of ClientResolver.php). However, I think it would be less confusing to document retries like this:
retries (bool)
Set to false to disable reporting on retries attempted. When stats is enabled, retry statistics are collected and returned by default.
Closing for now, but let us know if you have any additional questions.
This issue is now closed. Comments on closed issues are hard for our team to see.
If you need more assistance, please open a new issue that references this one.
Describe the issue
On https://docs.aws.amazon.com/sdk-for-php/v3/developer-guide/guide_configuration.html#config-stats, for
stats.retries
, it says "Retry statistics are collected by default and returned."That doesn't seem to be the case. I think the following code shows that the default for
stats
isfalse
.aws-sdk-php/src/ClientResolver.php
Lines 229 to 235 in dc9ac0a
Therefore, I think the following code sets
stats.retries
to false.aws-sdk-php/src/ClientResolver.php
Lines 911 to 917 in dc9ac0a
Links
https://docs.aws.amazon.com/sdk-for-php/v3/developer-guide/guide_configuration.html#config-stats
The text was updated successfully, but these errors were encountered: