Sentinel is called in a more secure way

pull/2149/head
theonefx 4 years ago
parent aa580ac3b6
commit df096fdfb5

@ -93,7 +93,7 @@ public class SentinelProtectInterceptor implements ClientHttpRequestInterceptor
return handleBlockException(request, body, execution, (BlockException) e);
}
else {
Tracer.trace(e);
Tracer.traceEntry(e, hostEntry);
if (e instanceof IOException) {
throw (IOException) e;
}

@ -109,7 +109,7 @@ public class SentinelInvocationHandler implements InvocationHandler {
catch (Throwable ex) {
// fallback handle
if (!BlockException.isBlockException(ex)) {
Tracer.trace(ex);
Tracer.traceEntry(ex, entry);
}
if (fallbackFactory != null) {
try {

Loading…
Cancel
Save