-
Notifications
You must be signed in to change notification settings - Fork 155
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 StatisticsCollector to Options for custom statistics tracking #964
Conversation
efee3c0
to
3e5e2c6
Compare
3e5e2c6
to
7bc524b
Compare
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
} | ||
else { | ||
statistics.incrementOrphanRepliesReceived(); | ||
if (advancedTracking) { |
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.
Previously, all orphan counter was being incremented for every duplicate or orphan when advancedTracking
was not enabled. Does this change to first check the advancedTracking
flag and only when enabled increment duplicate or orphan replies.
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.
Yeah, this is some weird original code, and I'm to blame, sigh. This change is good.
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
} | ||
else { | ||
statistics.incrementOrphanRepliesReceived(); | ||
if (advancedTracking) { |
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.
Yeah, this is some weird original code, and I'm to blame, sigh. This change is good.
Add an interface for statistics collection that can be set on
Options
to allow for custom metric collection (e.g. to prometheus).This fixes #960