You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In its current form the DropwizardExports.collect() throws an exception if a registered metric contains an invalid data point (e.g. a Counter with negative value).
In large applications, it may be preferable to gracefully degrade the available metrics and report the successful subset of metrics, while reporting the failure via e.g. logging. This would allow operators to maintain some visibility into the application state, while at the same time becoming aware of the "invalid metric".
There seems to be a certain precedence for this, since DropwizardExports.fromGauge currently ignores invalid gauges rather than failing the entire collection call.