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

[telemetry] dev-mode; additional metrics for better troubleshooting #131

Merged
merged 7 commits into from
Jan 15, 2021

Conversation

truthbk
Copy link
Member

@truthbk truthbk commented Jan 11, 2021

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.

private void sendMetric(final Message message) {
send(message);
this.telemetry.incrMetricsSent(1);
private boolean sendMetric(final Message message) {
Copy link
Member

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?

Copy link
Member Author

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) {
Copy link
Member

Choose a reason for hiding this comment

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

Uncomment or remove?

Copy link
Member Author

Choose a reason for hiding this comment

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

uncomment! :)

Thanks.

@truthbk truthbk merged commit a1272af into master Jan 15, 2021
@truthbk truthbk deleted the jaime/devmode branch January 15, 2021 11:53
@truthbk truthbk added this to the 2.13.0 milestone Jun 9, 2021
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