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:
John Bley 2020-03-16 17:12:53 -04:00 committed by GitHub
parent 23f4e057cf
commit 630afcd7d3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -81,7 +81,7 @@ public final class CommonTaskExecutor extends AbstractExecutorService {
private final ScheduledExecutorService executorService;
private ShutdownCallback(final ScheduledExecutorService executorService) {
super("agent-exec-shutdown-hook");
super("opentelemetry-exec-shutdown-hook");
this.executorService = executorService;
}

View File

@ -20,7 +20,7 @@ import java.util.concurrent.ThreadFactory;
/** A {@link ThreadFactory} implementation that starts all {@link Thread} as daemons. */
public final class DaemonThreadFactory implements ThreadFactory {
public static final DaemonThreadFactory TASK_SCHEDULER =
new DaemonThreadFactory("agent-task-scheduler");
new DaemonThreadFactory("opentelemetry-task-scheduler");
private final String threadName;