diff --git a/dd-java-agent/src/test/java/datadog/trace/agent/test/IntegrationTestUtils.java b/dd-java-agent/src/test/java/datadog/trace/agent/test/IntegrationTestUtils.java index af5c22b872..c106179ead 100644 --- a/dd-java-agent/src/test/java/datadog/trace/agent/test/IntegrationTestUtils.java +++ b/dd-java-agent/src/test/java/datadog/trace/agent/test/IntegrationTestUtils.java @@ -2,7 +2,6 @@ package datadog.trace.agent.test; import static java.nio.charset.StandardCharsets.UTF_8; -import io.opentracing.Scope; import io.opentracing.Tracer; import io.opentracing.util.GlobalTracer; import java.io.BufferedReader; @@ -18,7 +17,6 @@ import java.util.Arrays; import java.util.List; import java.util.Map; import java.util.UUID; -import java.util.concurrent.Callable; import java.util.jar.Attributes; import java.util.jar.JarEntry; import java.util.jar.JarOutputStream; @@ -26,18 +24,6 @@ import java.util.jar.Manifest; public class IntegrationTestUtils { - public static Object runUnderTrace( - final String rootOperationName, final Callable r) { - final Scope scope = GlobalTracer.get().buildSpan(rootOperationName).startActive(true); - try { - return r.call(); - } catch (final Exception e) { - throw new IllegalStateException(e); - } finally { - scope.close(); - } - } - /** Returns the classloader the core agent is running on. */ public static ClassLoader getAgentClassLoader() { return getTracingAgentFieldClassloader("AGENT_CLASSLOADER");