-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Closed
Labels
guidanceQuestion that needs advice or information.Question that needs advice or information.
Description
Describe the bug
gems/aws-sdk-core-3.227.0/lib/aws-sdk-core/plugins/sign.rb:58:in `with_metrics': undefined method `metrics' for #<Credentials>
After upgrading from aws-sdk-core 3.222.1 to 3.227.0 we are now getting this error.
Is it required now to implement a 'metrics' method on credential provider? This commit seemed to previously check for existence of metrics method prior to trying to execute it https://github.com/aws/aws-sdk-ruby/commit/da47b00d314df84a9f14dcc2f74b06ebe87f4789#diff-66241a4430dc3ddf6c870d8f2[…]71804f9bcad61927fb6dcc67860aL61
Regression Issue
- Select this option if this issue appears to be a regression.
Expected Behavior
Should not throw this error unless metrics is a required method
Current Behavior
Errors
Reproduction Steps
Create a minimal credentials provider class wrapper without metrics function
Possible Solution
No response
Additional Information/Context
No response
Gem name ('aws-sdk', 'aws-sdk-resources' or service gems like 'aws-sdk-s3') and its version
aws-sdk-core sign.rb
Environment details (Version of Ruby, OS environment)
ruby 3.0.5p211 (2022-11-24 revision ba5cf0f7c5) [x86_64-darwin22]
Metadata
Metadata
Assignees
Labels
guidanceQuestion that needs advice or information.Question that needs advice or information.