Skip to content

Conversation

@pawels-optimizely
Copy link
Contributor

@pawels-optimizely pawels-optimizely commented Jan 2, 2020

Summary

  • Added generic metrics through metrics registry, supporting Counter with Add() method and Gauge with Set() method
  • Used these new defined metrics for event dispatcher

Copy link
Contributor

@mikeproeng37 mikeproeng37 left a comment

Choose a reason for hiding this comment

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

Nice! I like this generic approach way better. I've added a few comments in there.

@mikeproeng37 mikeproeng37 dismissed their stale review January 3, 2020 23:03

Won't be around next week

Copy link
Contributor

@mikecdavis mikecdavis left a comment

Choose a reason for hiding this comment

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

This looks great! I have a few naming suggestion and would prefer we restore the test assertions, but overall it's looking spot on.

Copy link
Contributor

@mikecdavis mikecdavis left a comment

Choose a reason for hiding this comment

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

LGMT!

@pawels-optimizely pawels-optimizely merged commit d1b332c into master Jan 8, 2020
@pawels-optimizely pawels-optimizely deleted the pawel/revised_metrics branch January 8, 2020 17:43
Comment on lines +77 to +79
sucessFlush metrics.Counter
failFlushCounter metrics.Counter
retryFlushCounter metrics.Counter
Copy link
Contributor

Choose a reason for hiding this comment

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

Two of these fields have Counter in the field name, but one doesn't - seems weird.

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.

5 participants