Been a dropwizard/metrics user since 2015, but just recently came across SettableGauge. Some thoughts on improving visibility usage
Add more documentation
Add a getter metricRegistry.settableGauge ( Currently I have to cast Gauge to SettableGauge to be able to set a value)
Add a default implementation for setValue to the Gauge interface that doesn't do anything to make it backwards compatible with Gauge implementations outside the dropwizard repository (May not be ideal ? Defeats purpose of SettableGauge interface?)
Been a dropwizard/metrics user since 2015, but just recently came across SettableGauge. Some thoughts on improving visibility usage
metricRegistry.settableGauge
( Currently I have to cast Gauge to SettableGauge to be able to set a value)setValue
to the Gauge interface that doesn't do anything to make it backwards compatible with Gauge implementations outside the dropwizard repository (May not be ideal ? Defeats purpose of SettableGauge interface?)Happy to work on this if people find it useful