Instrument BlockingThreadPoolExecutor.

This commit is contained in:
Jon Chambers
2020-06-12 13:37:42 -04:00
committed by Jon Chambers
parent 6f767a72a7
commit c17cc07b73
3 changed files with 18 additions and 4 deletions

View File

@@ -56,7 +56,7 @@ public class PushSender implements Managed {
this.apnSender = apnSender;
this.webSocketSender = websocketSender;
this.queueSize = queueSize;
this.executor = new BlockingThreadPoolExecutor(50, queueSize);
this.executor = new BlockingThreadPoolExecutor("pushSender", 50, queueSize);
SharedMetricRegistries.getOrCreate(Constants.METRICS_NAME)
.register(name(PushSender.class, "send_queue_depth"),