Skip to content

Commit

Permalink
Fix kafka Stream instrumentation (#3438)
Browse files Browse the repository at this point in the history
  • Loading branch information
GuillaumeWaignier authored Jun 30, 2021
1 parent 15ed01d commit 00b1b07
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@
import static net.bytebuddy.matcher.ElementMatchers.isMethod;
import static net.bytebuddy.matcher.ElementMatchers.isPublic;
import static net.bytebuddy.matcher.ElementMatchers.named;
import static net.bytebuddy.matcher.ElementMatchers.takesArguments;

import io.opentelemetry.context.Context;
import io.opentelemetry.javaagent.extension.instrumentation.TypeInstrumentation;
Expand All @@ -29,7 +28,7 @@ public ElementMatcher<TypeDescription> typeMatcher() {
@Override
public void transform(TypeTransformer transformer) {
transformer.applyAdviceToMethod(
isMethod().and(isPublic()).and(named("process")).and(takesArguments(0)),
isMethod().and(isPublic()).and(named("process")),
StreamTaskStopInstrumentation.class.getName() + "$StopSpanAdvice");
}

Expand Down

0 comments on commit 00b1b07

Please sign in to comment.