From 77dae8d1deb4705dfa99b829d9671b8f6f99ddaa Mon Sep 17 00:00:00 2001 From: Lauri Tulmin Date: Wed, 6 Apr 2022 13:36:31 +0300 Subject: [PATCH] replace deprecated method usage --- .../javaagent/tooling/muzzle/AgentCachingPoolStrategy.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/muzzle/src/main/java/io/opentelemetry/javaagent/tooling/muzzle/AgentCachingPoolStrategy.java b/muzzle/src/main/java/io/opentelemetry/javaagent/tooling/muzzle/AgentCachingPoolStrategy.java index 25e857f6ea9c..9ee660a7fc8e 100644 --- a/muzzle/src/main/java/io/opentelemetry/javaagent/tooling/muzzle/AgentCachingPoolStrategy.java +++ b/muzzle/src/main/java/io/opentelemetry/javaagent/tooling/muzzle/AgentCachingPoolStrategy.java @@ -48,7 +48,7 @@ public class AgentCachingPoolStrategy implements AgentBuilder.PoolStrategy { // others to avoid creation of synthetic accessors private static final boolean REFLECTION_ENABLED = - Config.get().isInstrumentationEnabled(Collections.singleton("internal-reflection"), true); + Config.get().getBoolean("otel.instrumentation.internal-reflection.enabled", true); private static final Method findLoadedClassMethod = getFindLoadedClassMethod(); static final int TYPE_CAPACITY = 64;