Update thread names
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.
MODIFY
utils/thread-utils/src/main/java/io/opentelemetry/auto/common/exec/CommonTaskExecutor.java
utils/thread-utils/src/main/java/io/opentelemetry/auto/common/exec/CommonTaskExecutor.java
@@ -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;
}

MODIFY
utils/thread-utils/src/main/java/io/opentelemetry/auto/common/exec/DaemonThreadFactory.java
utils/thread-utils/src/main/java/io/opentelemetry/auto/common/exec/DaemonThreadFactory.java
@@ -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;

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>