diff --git a/muzzle/src/main/java/io/opentelemetry/javaagent/tooling/muzzle/ReferenceCollectingClassVisitor.java b/muzzle/src/main/java/io/opentelemetry/javaagent/tooling/muzzle/ReferenceCollectingClassVisitor.java index 7efea70e16e4..f72d2b6f3bac 100644 --- a/muzzle/src/main/java/io/opentelemetry/javaagent/tooling/muzzle/ReferenceCollectingClassVisitor.java +++ b/muzzle/src/main/java/io/opentelemetry/javaagent/tooling/muzzle/ReferenceCollectingClassVisitor.java @@ -545,7 +545,7 @@ public void visitMethodInsn( Type methodType = Type.getMethodType(descriptor); Type ownerType = Type.getType("L" + owner + ";"); - // remember used context classes if this is an VirtualField.get() call + // remember used context classes if this is an VirtualField.find() call if ("io.opentelemetry.instrumentation.api.util.VirtualField".equals(ownerType.getClassName()) && "find".equals(name) && methodType.getDescriptor().equals(getVirtualFieldDescriptor)) {