Move netty4.1 exception handling to an other method (#2070)

This commit is contained in:
Lauri Tulmin 2021-01-19 08:14:49 +02:00 committed by GitHub
parent 660f0e5225
commit 7c3b183294
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 3 deletions

View File

@ -31,13 +31,13 @@ public class AbstractChannelHandlerContextInstrumentation implements TypeInstrum
public Map<? extends ElementMatcher<? super MethodDescription>, String> transformers() {
return singletonMap(
isMethod()
.and(named("notifyHandlerException"))
.and(named("invokeExceptionCaught"))
.and(takesArgument(0, named(Throwable.class.getName()))),
AbstractChannelHandlerContextInstrumentation.class.getName()
+ "$NotifyHandlerExceptionAdvice");
+ "$InvokeExceptionCaughtAdvice");
}
public static class NotifyHandlerExceptionAdvice {
public static class InvokeExceptionCaughtAdvice {
@Advice.OnMethodEnter
public static void onEnter(@Advice.Argument(0) Throwable throwable) {
Span span = Java8BytecodeBridge.currentSpan();