Skip to content

Commit 6c6c5d0

Browse files
committed
post-review changes
1 parent f4c3e98 commit 6c6c5d0

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

instrumentation/methods/javaagent/src/main/java/io/opentelemetry/javaagent/instrumentation/methods/MethodInstrumentation.java

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

66
package io.opentelemetry.javaagent.instrumentation.methods;
77

8-
import static io.opentelemetry.javaagent.bootstrap.Java8BytecodeBridge.currentContext;
98
import static io.opentelemetry.javaagent.extension.matcher.AgentElementMatchers.hasClassesNamed;
109
import static io.opentelemetry.javaagent.extension.matcher.AgentElementMatchers.hasSuperType;
1110
import static io.opentelemetry.javaagent.instrumentation.methods.MethodSingletons.getBootstrapLoader;
@@ -107,7 +106,7 @@ private AdviceScope(MethodAndType classAndMethod, Context context, Scope scope)
107106
@Nullable
108107
public static AdviceScope start(
109108
SpanKind spanKind, Class<?> declaringClass, String methodName) {
110-
Context parentContext = currentContext();
109+
Context parentContext = Context.current();
111110
MethodAndType methodAndType =
112111
MethodAndType.create(ClassAndMethod.create(declaringClass, methodName), spanKind);
113112

0 commit comments

Comments
 (0)