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 b627b67 commit 99786fb
Showing 1 changed file with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -23,13 +23,12 @@
import io.opentelemetry.javaagent.bootstrap.AgentInitializer;
import io.opentelemetry.javaagent.bootstrap.InstrumentationHolder;
import io.opentelemetry.javaagent.tooling.AgentInstaller;
import io.opentelemetry.javaagent.tooling.config.EarlyInitAgentConfig;
import java.io.IOException;
import java.lang.instrument.Instrumentation;
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 @@ -117,7 +116,9 @@ public static void beforeAll() {
// ---------------------------------------------------------------------
System.setProperty("otel.instrumentation.internal-reflection.enabled", "false");
AgentInstaller.installBytebuddyAgent(
INSTRUMENTATION, AgentInitializer.getExtensionsClassLoader(), EarlyInitAgentConfig.create());
INSTRUMENTATION,
AgentInitializer.getExtensionsClassLoader(),
EarlyInitAgentConfig.create());
INSTRUMENTED = true;
}
if (TEST_TRACER == null) {
Expand Down

0 comments on commit 99786fb

Please sign in to comment.