Move netty4.1 exception handling to an other method (#2070)
This commit is contained in:
parent
660f0e5225
commit
7c3b183294
|
@ -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();
|
||||
|
|
Loading…
Reference in New Issue