provide transfer statistics for requests made in credential providers #2770
Labels
feature-request
A feature should be added or improved.
p2
This is a standard priority issue
queued
This issues is on the AWS team's backlog
Describe the feature
The SDK allows enabling transfer statistics for each request by setting the
stats
configuration option. This does not include requests made in the credential providers (e.g.InstanceProfileProvider
). Right now there is no way to monitor those requests and track retries or request durations.Use Case
We have connection issues with the instance metadata service from time to time and would like to provide metrics with number of retries and request durations so we can analyze the issues or handle faulty instances automatically. For that we need to collect those metrics for each request.
Proposed Solution
As we already collect metrics for each request to AWS services using a middleware it would be awesome when the statistics from the provider requests could just be added to the results or exceptions as well.
Other Information
No response
Acknowledgements
SDK version used
3.277.2
Environment details (Version of PHP (
php -v
)? OS name and version, etc.)PHP 8.1.18 (cli) (built: Apr 14 2023 04:39:44) (NTS)
The text was updated successfully, but these errors were encountered: