Make AgentTracer constructor private.
MODIFY
dd-java-agent/agent-bootstrap/src/main/java/datadog/trace/instrumentation/api/AgentTracer.java
dd-java-agent/agent-bootstrap/src/main/java/datadog/trace/instrumentation/api/AgentTracer.java
@@ -5,7 +5,7 @@ import datadog.trace.context.TraceScope.Continuation;
import datadog.trace.instrumentation.api.AgentSpan.Context;
import java.util.concurrent.atomic.AtomicReference;
-public abstract class AgentTracer {
+public class AgentTracer {
// Implicit parent
public static AgentSpan startSpan(final String spanName) {
@@ -60,6 +60,9 @@ public abstract class AgentTracer {
return provider.get();
}
+ // Not intended to be constructed.
+ private AgentTracer() {}
+
public interface TracerAPI {
AgentSpan startSpan(String spanName);

Make AgentTracer constructor private.