Skip to content

Commit

Permalink
try
Browse files Browse the repository at this point in the history
  • Loading branch information
kishansairam9 committed Jan 23, 2024
1 parent 40e4af1 commit d25c176
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,8 @@
import java.lang.reflect.Field;
import java.util.Arrays;
import java.util.concurrent.TimeUnit;

import io.opentelemetry.javaagent.tooling.config.EarlyInitAgentConfig;
import net.bytebuddy.agent.ByteBuddyAgent;
import okhttp3.MediaType;
import okhttp3.OkHttpClient;
Expand Down Expand Up @@ -115,7 +117,7 @@ public static void beforeAll() {
// ---------------------------------------------------------------------
System.setProperty("otel.instrumentation.internal-reflection.enabled", "false");
AgentInstaller.installBytebuddyAgent(
INSTRUMENTATION, AgentInitializer.getExtensionsClassLoader());
INSTRUMENTATION, AgentInitializer.getExtensionsClassLoader(), EarlyInitAgentConfig.create());
INSTRUMENTED = true;
}
if (TEST_TRACER == null) {
Expand Down

0 comments on commit d25c176

Please sign in to comment.