Skip to content

Commit 035a343

Browse files
committed
post-review changes
1 parent 4c954e2 commit 035a343

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

instrumentation/grails-3.0/javaagent/src/main/java/io/opentelemetry/javaagent/instrumentation/grails/DefaultGrailsControllerClassInstrumentation.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@
1414

1515
import io.opentelemetry.context.Context;
1616
import io.opentelemetry.context.Scope;
17-
import io.opentelemetry.javaagent.bootstrap.Java8BytecodeBridge;
1817
import io.opentelemetry.javaagent.extension.instrumentation.TypeInstrumentation;
1918
import io.opentelemetry.javaagent.extension.instrumentation.TypeTransformer;
2019
import javax.annotation.Nullable;
@@ -57,7 +56,7 @@ private AdviceScope(HandlerData handlerData, Context context, Scope scope) {
5756
@Nullable
5857
public static AdviceScope start(
5958
Object controller, @Nullable String action, String defaultActionName) {
60-
Context parentContext = Java8BytecodeBridge.currentContext();
59+
Context parentContext = Context.current();
6160
HandlerData handlerData =
6261
new HandlerData(controller, action != null ? action : defaultActionName);
6362
if (!instrumenter().shouldStart(parentContext, handlerData)) {

0 commit comments

Comments
 (0)