Skip to content

Commit 6c53513

Browse files
authored
classLoaderOptimization is not needed when matching by name (#8010)
1 parent ff73e95 commit 6c53513

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

instrumentation/oshi/javaagent/src/main/java/io/opentelemetry/javaagent/instrumentation/oshi/SystemInfoInstrumentation.java

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55

66
package io.opentelemetry.javaagent.instrumentation.oshi;
77

8-
import static io.opentelemetry.javaagent.extension.matcher.AgentElementMatchers.hasClassesNamed;
98
import static net.bytebuddy.matcher.ElementMatchers.isMethod;
109
import static net.bytebuddy.matcher.ElementMatchers.isPublic;
1110
import static net.bytebuddy.matcher.ElementMatchers.isStatic;
@@ -18,11 +17,6 @@
1817
import net.bytebuddy.matcher.ElementMatcher;
1918

2019
public class SystemInfoInstrumentation implements TypeInstrumentation {
21-
@Override
22-
public ElementMatcher<ClassLoader> classLoaderOptimization() {
23-
return hasClassesNamed("oshi.SystemInfo");
24-
}
25-
2620
@Override
2721
public ElementMatcher<TypeDescription> typeMatcher() {
2822
return named("oshi.SystemInfo");

0 commit comments

Comments
 (0)