improved error messages

This commit is contained in:
Jonathan Shook 2023-05-18 14:57:04 -05:00
parent cc0a8751e1
commit d2c7d1a32f
2 changed files with 4 additions and 0 deletions

View File

@ -55,6 +55,9 @@ public class ActivityProgressIndicator implements Runnable {
}
private void parseProgressSpec(String interval) {
if (interval==null) {
throw new RuntimeException("can't parse progress spec if it is null");
}
String[] parts = interval.split(":");
switch (parts.length) {
case 2:

View File

@ -74,6 +74,7 @@ public class PromPushReporter extends ScheduledReporter {
}
PromPushReporter.logger.debug("formatted {} metrics in prom expo format", total);
final String exposition = sb.toString();
logger.trace(() -> "prom exposition format:\n" + exposition);
final double backoffRatio=1.5;
final double maxBackoffSeconds=10;