-
Notifications
You must be signed in to change notification settings - Fork 1.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
enhancement: user agent 2.1 #3001
base: master
Are you sure you want to change the base?
enhancement: user agent 2.1 #3001
Conversation
c1ae03a
to
8d081b1
Compare
3cd174e
to
4905534
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just an initial pass- had a few comments
const FLEXIBLE_CHECKSUMS_REQ_CRC64 = "W"; | ||
const FLEXIBLE_CHECKSUMS_REQ_SHA1 = "X"; | ||
const FLEXIBLE_CHECKSUMS_REQ_SHA256 = "Y"; | ||
/** @var int */ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: newline needed here
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Basically I was saying each var/docblock should be separated by a newline
e4cd325
to
6b4b870
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looking good, just had a few more comments
1160889
to
c77d08e
Compare
c8c6ef9
to
64854e1
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Approved, pending some nits about newlines
const FLEXIBLE_CHECKSUMS_REQ_CRC64 = "W"; | ||
const FLEXIBLE_CHECKSUMS_REQ_SHA1 = "X"; | ||
const FLEXIBLE_CHECKSUMS_REQ_SHA256 = "Y"; | ||
/** @var int */ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Basically I was saying each var/docblock should be separated by a newline
This change provides: - A builder class for appending metrics - Default initialization of a metrics builder within command instantiation - Wraps user agent logic into a single middleware class - Adds middlewares into the different features from where metrics can be gather, to acomplish this purpose.
- Move the user agent middleware after the signing step in order to gather signature metrics. - Add request compression metric gathering. - Add specific testing for signatures. - Add specific testing for request compression. - Add specific testing for s3 encryption clients. - Add credentials metric gathering logic. - Add tests for credentials metrics. - Make existent credentials tests to work with the new field `source`. For example, for tests around profile credentials the source property for credentials MUST be `profile`. The default value for this field is `static`.
- Use static mapping instead of multiple if/else-ifs. - Remove the endpoint_id metric tracking since it was removed from the spec. - Make method's name to be verb based. - Remove the getMetricsBuilder from the CommandInterface.
- Add tests cases to cover credentials sets the correct source when resolved. - Fix the sso, sso_legacy, and process metrics. They should be all a profile based metric.
0ac671a
to
eb1aa90
Compare
This change provides:
Issue #, if available:
Description of changes:
By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.