-
Notifications
You must be signed in to change notification settings - Fork 910
Add apache HTTP request stats #1863
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
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 add some functional tests using the fake protocol test clients?
...clients/apache-client/src/main/java/software/amazon/awssdk/http/apache/ApacheHttpClient.java
Outdated
Show resolved
Hide resolved
http-client-spi/src/main/java/software/amazon/awssdk/http/HttpMetrics.java
Outdated
Show resolved
Hide resolved
/** | ||
* The maximum number of connections that will be pooled by the HTTP client. | ||
*/ | ||
public static final SdkMetric<Integer> MAX_CONNECTIONS = metric("MaxConnections", Integer.class); |
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.
Do we need to namespace all sdk metrics?
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.
I think the issue with that is if you want to "pretty print" the metrics, or write your own publisher, there's no easy way to just get the metric name
/** | ||
* The maximum number of connections that will be pooled by the HTTP client. | ||
*/ | ||
public static final SdkMetric<Integer> MAX_CONNECTIONS = metric("MaxConnections", Integer.class); |
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.
Do we want to differentiate h2 max connection from it? Is it worth creating a new class for all h2 http metrics such as window size, max streams, etc?
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.
Yeah I think we should create additional metrics for H2 specific things; perhaps per-connection metrics?
Can't do this yet unfortunately until all the other things are hooked up in the request pipeline and codegen so that an SDK client actually creates a collector and passes it to the HTTP client |
SonarCloud Quality Gate failed.
|
Revert "[JUnit 5] Migrate some parameterized tests to JUnit 5 (#2880)"
Description
Motivation and Context
Testing
Screenshots (if appropriate)
Types of changes
Checklist
mvn install
succeedsLicense