Skip to content

provide transfer statistics for requests made in credential providers #2770

Open
@umesecke

Description

@umesecke

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

  • I may be able to implement this feature request
  • This feature might incur a breaking change

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)

Metadata

Metadata

Assignees

No one assigned

    Labels

    feature-requestA feature should be added or improved.p2This is a standard priority issuequeuedThis issues is on the AWS team's backlog

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions