Skip to content
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

feat: surface HTTP connection manager metrics #88

Merged
merged 1 commit into from
Jan 10, 2024

Conversation

ianbotsf
Copy link
Contributor

@ianbotsf ianbotsf commented Jan 8, 2024

Issue #, if available:

smithy-lang/smithy-kotlin#893

Description of changes:

This change makes HTTP manager metrics available in the Kotlin API.

Companion PR: smithy-lang/smithy-kotlin#1017

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

@ianbotsf ianbotsf requested a review from a team as a code owner January 8, 2024 17:01
Copy link

sonarcloud bot commented Jan 8, 2024

Quality Gate Passed Quality Gate passed

The SonarCloud Quality Gate passed, but some issues were introduced.

1 New issue
0 Security Hotspots
No data about Coverage
0.0% Duplication on New Code

See analysis details on SonarCloud

Copy link
Contributor

@aajtodd aajtodd left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Couple questions/nit but looks good.

/**
* The active metrics for this connection manager
*/
public val managerMetrics: HttpManagerMetrics
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: Wouldn't metrics suffice here given it's namespaced under HttpClientConnectionManager

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Similar to other Java→Kotlin mapping classes, I chose to keep this the same as the underlying property. If you feel strongly I can change it to be simpler (which I would generally prefer when not mapping existing classes).

*/
package aws.sdk.kotlin.crt.http

public data class HttpManagerMetrics(
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

question: Are these connection manager metrics? If so HttpManager seems ambiguous and should probably be HttpConnectionManagerMetrics or HttpConnectionMetrics

fix: Missing docs on these metrics. I know they are meant to match SRA but probably should document them still and any differences/quirks that may lie herein.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Similar to other Java→Kotlin mapping classes, I chose to keep this the same as the underlying class. If you feel strongly I can change it to be clearer (which I would generally prefer when not mapping existing classes).

@ianbotsf ianbotsf merged commit ac19742 into main Jan 10, 2024
5 checks passed
@ianbotsf ianbotsf deleted the feat-crt-http-metrics branch January 10, 2024 21:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants