-
Notifications
You must be signed in to change notification settings - Fork 36
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 stopWithFlush option to ffwd reporter & ffwd http reporter #96
Conversation
if (executorOwner) { | ||
executorService.shutdown(); | ||
} | ||
//final flush 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.
I wonder if the log line might be sufficient documentation for what's going on.
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.
true haha
registry.derivingMeter(MetricId.build("deriving-meter")); | ||
|
||
|
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: extra line break
|
||
@Test | ||
public void someReportingNoTickFails() { |
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'm not sure best description is that it fails? Perhaps a more descriptive name could be noReportingIfNoTick
?
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 agree about renaming someReportingNoTickFails
, otherwise LGTM
Add stop with flush option for user's who would like to ensure a final flush of metrics when their service shuts down.
Tests for: