Update thread names (#231)
As threads are visible to users, use 'opentelemetry-' prefix to ensure that it's immediately obvious that we created the threads when using profilers, thread dumps, etc. Co-authored-by: Trask Stalnaker <trask.stalnaker@gmail.com>
This commit is contained in:
parent
23f4e057cf
commit
630afcd7d3
|
@ -81,7 +81,7 @@ public final class CommonTaskExecutor extends AbstractExecutorService {
|
||||||
private final ScheduledExecutorService executorService;
|
private final ScheduledExecutorService executorService;
|
||||||
|
|
||||||
private ShutdownCallback(final ScheduledExecutorService executorService) {
|
private ShutdownCallback(final ScheduledExecutorService executorService) {
|
||||||
super("agent-exec-shutdown-hook");
|
super("opentelemetry-exec-shutdown-hook");
|
||||||
this.executorService = executorService;
|
this.executorService = executorService;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -20,7 +20,7 @@ import java.util.concurrent.ThreadFactory;
|
||||||
/** A {@link ThreadFactory} implementation that starts all {@link Thread} as daemons. */
|
/** A {@link ThreadFactory} implementation that starts all {@link Thread} as daemons. */
|
||||||
public final class DaemonThreadFactory implements ThreadFactory {
|
public final class DaemonThreadFactory implements ThreadFactory {
|
||||||
public static final DaemonThreadFactory TASK_SCHEDULER =
|
public static final DaemonThreadFactory TASK_SCHEDULER =
|
||||||
new DaemonThreadFactory("agent-task-scheduler");
|
new DaemonThreadFactory("opentelemetry-task-scheduler");
|
||||||
|
|
||||||
private final String threadName;
|
private final String threadName;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue