We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d90b3ea commit f023cd0Copy full SHA for f023cd0
prometheus-metrics-core/src/main/java/io/prometheus/metrics/core/util/Scheduler.java
@@ -15,9 +15,11 @@ public class Scheduler {
15
16
private static class DaemonThreadFactory implements ThreadFactory {
17
private static int threadNum;
18
+
19
private static synchronized int nextThreadNum() {
20
return threadNum++;
21
}
22
23
@Override
24
public Thread newThread(Runnable runnable) {
25
Thread thread = new Thread(runnable, "prometheus-metrics-scheduler-" + nextThreadNum());
0 commit comments