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); return handleBlockException(request, body, execution, (BlockException) e);
} }
else { else {
Tracer.trace(e); Tracer.traceEntry(e, hostEntry);
if (e instanceof IOException) { if (e instanceof IOException) {
throw (IOException) e; throw (IOException) e;
} }

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

Loading…
Cancel
Save