-
Notifications
You must be signed in to change notification settings - Fork 910
Support core metrics for sync clients #1882
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
Conversation
Kudos, SonarCloud Quality Gate passed!
|
...test/java/software/amazon/awssdk/core/client/AsyncClientHandlerInterceptorExceptionTest.java
Show resolved
Hide resolved
@@ -271,4 +286,12 @@ static void validateExecutionParams(ClientExecutionParams<?, ?> executionParams) | |||
BiFunction<T, R, T> function2) { | |||
return (x, y) -> function2.apply(function1.apply(x, y), y); | |||
} | |||
|
|||
private MetricCollector resolveMetricCollector(ClientExecutionParams<?, ?> params) { |
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.
can we move this recurring resolver to a utils class or is that inconsistent with our core coding patterns?
* Utility methods for working with metrics. | ||
*/ | ||
@SdkInternalApi | ||
public final class MetricUtils { |
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.
Does this class have a unit test file?
core/sdk-core/src/main/java/software/amazon/awssdk/core/internal/util/MetricUtils.java
Show resolved
Hide resolved
...ses-test/src/test/java/software/amazon/awssdk/services/protocolrestjson/CoreMetricsTest.java
Show resolved
Hide resolved
core/sdk-core/src/main/java/software/amazon/awssdk/core/metrics/CoreMetric.java
Show resolved
Hide resolved
core/sdk-core/src/main/java/software/amazon/awssdk/core/metrics/CoreMetric.java
Show resolved
Hide resolved
Per discussion with @zoewangg going to merge this PR now since the outstanding comments are minor so she can get started on async metrics. Will address the comments here in a follow up PR. |
.../test/resources/software/amazon/awssdk/codegen/poet/client/test-endpoint-discovery-sync.java
Show resolved
Hide resolved
...-core/src/main/java/software/amazon/awssdk/awscore/client/handler/AwsClientHandlerUtils.java
Show resolved
Hide resolved
...ses-test/src/test/java/software/amazon/awssdk/services/protocolrestjson/CoreMetricsTest.java
Show resolved
Hide resolved
Follow-up on review comment on aws#1882
…a8f6000ba Pull request: release <- staging/e6f8c2a2-d913-4fb6-b322-03ca8f6000ba
Description
This commits adds collection of core metrics for sync clients.
Motivation and Context
Testing
Screenshots (if appropriate)
Types of changes
Checklist
mvn install
succeedsLicense