Skip to content

Commit a7fdf1a

Browse files
committed
make rmi instrumentation indy-compatible
1 parent c8bd230 commit a7fdf1a

File tree

1 file changed

+0
-7
lines changed

1 file changed

+0
-7
lines changed

instrumentation/rmi/javaagent/src/main/java/io/opentelemetry/javaagent/instrumentation/rmi/context/RmiContextPropagationInstrumentationModule.java

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -20,13 +20,6 @@ public RmiContextPropagationInstrumentationModule() {
2020
super("rmi", "rmi-context-propagation");
2121
}
2222

23-
@Override
24-
public boolean isIndyModule() {
25-
// java.lang.IllegalAccessError: class
26-
// io.opentelemetry.javaagent.instrumentation.rmi.context.client.RmiClientContextInstrumentation$StreamRemoteCallConstructorAdvice (in unnamed module @0x740ee00f) cannot access class sun.rmi.transport.Connection (in module java.rmi) because module java.rmi does not export sun.rmi.transport to unnamed module @0x740ee00f
27-
return false;
28-
}
29-
3023
@Override
3124
public List<TypeInstrumentation> typeInstrumentations() {
3225
return asList(new RmiClientContextInstrumentation(), new RmiServerContextInstrumentation());

0 commit comments

Comments
 (0)