Give the persister worker thread a meaningful name.

This commit is contained in:
Jon Chambers 2020-10-04 10:29:42 -04:00 committed by Jon Chambers
parent 0308532523
commit 8ec1dda9ba
1 changed files with 1 additions and 1 deletions

View File

@ -68,7 +68,7 @@ public class MessagePersister implements Managed {
logger.warn("Failed to persist queues", t);
}
}
});
}, "MessagePersisterWorker");
metricRegistry.gauge(name(getClass(), "workerThreadRunning"), () -> () -> workerThread.isAlive() ? 1 : 0);
}