-
Notifications
You must be signed in to change notification settings - Fork 16
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
Add socket bind timing metrics #2047
Conversation
Generate changelog in
|
…e into amr/socket-bind-timings
.clientName(clientName) | ||
.result(ConnectionSocketBind_Result.SUCCESS) | ||
.build(); | ||
this.socketBindFailureTimer = DialogueClientMetrics.of(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.
Nit: let's factor out the three DialogueClientMetrics.of(metrics)
into a local variable which we can reuse for each of the three metric instances we register.
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.
done in ca0dd32
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.
lgtm, thanks!
One sec, I need to review this a bit more closely -- I'm not sure it's doing the right thing |
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 this currently measures the time it takes to update an AtomicReference. This is the piece we want to measure: SSLConnectionSocketFactory.java#L246 but not this piece: SSLConnectionSocketFactory.java#L260-L264.
I can take a closer look tomorrow |
Closing because #2053 has already merged |
This metric is helpful to understand networking latencies to help guide reducing connect timeouts.
==COMMIT_MSG==
Add socket bind timing metrics
==COMMIT_MSG==
Possible downsides?