Skip to content

Commit ea74258

Browse files
committed
fix compilation error
1 parent 0e3e14a commit ea74258

File tree

1 file changed

+1
-1
lines changed
  • instrumentation/spring/spring-rmi-4.0/javaagent/src/main/java/io/opentelemetry/javaagent/instrumentation/spring/rmi/v4_0/server

1 file changed

+1
-1
lines changed

instrumentation/spring/spring-rmi-4.0/javaagent/src/main/java/io/opentelemetry/javaagent/instrumentation/spring/rmi/v4_0/server/ServerInstrumentation.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ public void exit(@Nullable Throwable throwable) {
8989
@Advice.OnMethodEnter(suppress = Throwable.class)
9090
public static AdviceScope onEnter(
9191
@Advice.This RmiBasedExporter thisObject, @Advice.Argument(0) RemoteInvocation remoteInv) {
92-
return new AdviceScope(CallDepth.forClass(RmiBasedExporter.class), thisObject, remoteInv);
92+
return AdviceScope.enter(CallDepth.forClass(RmiBasedExporter.class), thisObject, remoteInv);
9393
}
9494

9595
@Advice.OnMethodExit(onThrowable = Throwable.class, suppress = Throwable.class)

0 commit comments

Comments
 (0)