okhttp OnFailureInterceptor should log exception info (#3381)
This commit is contained in:
parent
54614a0594
commit
77736c5e7d
|
|
@ -28,7 +28,7 @@ public class OnFailureInterceptor implements InstanceMethodsAroundInterceptor {
|
|||
@Override
|
||||
public void beforeMethod(EnhancedInstance objInst, Method method, Object[] allArguments, Class<?>[] argumentsTypes,
|
||||
MethodInterceptResult result) throws Throwable {
|
||||
ContextManager.activeSpan().errorOccurred();
|
||||
ContextManager.activeSpan().errorOccurred().log((Throwable)allArguments[1]);
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
|
|||
Loading…
Reference in New Issue