Skip to content

Commit a4547c4

Browse files
Update instrumentation/vaadin-14.2/javaagent/src/main/java/io/opentelemetry/javaagent/instrumentation/vaadin/ClientCallableRpcInstrumentation.java
Co-authored-by: SylvainJuge <[email protected]>
1 parent 777f46b commit a4547c4

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

instrumentation/vaadin-14.2/javaagent/src/main/java/io/opentelemetry/javaagent/instrumentation/vaadin/ClientCallableRpcInstrumentation.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,8 +62,7 @@ public static AdviceScope start(Class<?> componentClass, String methodName) {
6262
}
6363

6464
Context context = clientCallableInstrumenter().start(parentContext, request);
65-
Scope scope = context.makeCurrent();
66-
return new AdviceScope(request, context, scope);
65+
return new AdviceScope(request, context, context.makeCurrent());
6766
}
6867

6968
public void end(@Nullable Throwable throwable) {

0 commit comments

Comments
 (0)