-
Notifications
You must be signed in to change notification settings - Fork 41.6k
Restore behavior of management.metrics.export.simple.enabled #12106
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -34,7 +34,8 @@ | |
| public class SimpleProperties { | ||
|
|
||
| /** | ||
| * Enable publishing to the backend. | ||
| * Enable in-memory metrics that aren't published anywhere (allows you to see | ||
| * what metrics are collected in the metrics actuator endpoint). | ||
| */ | ||
| private boolean enabled; | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The default value here should be true. And we shouldn't have a property at all since it's not used anywhere in the code. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Yep, I guess adding it to |
||
|
|
||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -41,11 +41,6 @@ public String get(String k) { | |
| return null; | ||
| } | ||
|
|
||
| @Override | ||
| public boolean enabled() { | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Having this property at all in |
||
| return get(SimpleProperties::getEnabled, SimpleConfig.super::enabled); | ||
| } | ||
|
|
||
| @Override | ||
| public Duration step() { | ||
| return get(SimpleProperties::getStep, SimpleConfig.super::step); | ||
|
|
||
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 think that's a bit misleading and we should rephrase that.