-
Notifications
You must be signed in to change notification settings - Fork 102
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
[telemetry] dev-mode; additional metrics for better troubleshooting #131
Conversation
0a4e1dd
to
5b674cd
Compare
private void sendMetric(final Message message) { | ||
send(message); | ||
this.telemetry.incrMetricsSent(1); | ||
private boolean sendMetric(final Message message) { |
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 this method be removed since now it's just a passthrough to send
?
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 can check, in any case, I'd rather clean that up in a separate PR? Being a private method it's probably fine, but it might imply some refactoring. I can't remember off the top of my head why we kept it around.
@@ -165,6 +316,18 @@ public void reset() { | |||
this.packetsDropped.set(0); | |||
this.packetsDroppedQueue.set(0); | |||
this.aggregatedContexts.set(0); | |||
|
|||
// if (devMode) { |
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.
Uncomment or remove?
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.
uncomment! :)
Thanks.
5b674cd
to
c7f7476
Compare
This PR adds a dev-mode to the client telemetry that should better help debug metric submission, and more importantly metric aggregation. This is an initial catalog of dev-mode telemetry metrics, but more may be added in the future.