From 179a517e2d00b14ff79c5d07cf426cc37b47ee6b Mon Sep 17 00:00:00 2001 From: fangjian0423 Date: Tue, 18 Dec 2018 23:27:31 +0800 Subject: [PATCH] using resource with path in Context --- .../alibaba/sentinel/custom/SentinelProtectInterceptor.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spring-cloud-alibaba-sentinel/src/main/java/org/springframework/cloud/alibaba/sentinel/custom/SentinelProtectInterceptor.java b/spring-cloud-alibaba-sentinel/src/main/java/org/springframework/cloud/alibaba/sentinel/custom/SentinelProtectInterceptor.java index 18a895de..a1ab9e22 100644 --- a/spring-cloud-alibaba-sentinel/src/main/java/org/springframework/cloud/alibaba/sentinel/custom/SentinelProtectInterceptor.java +++ b/spring-cloud-alibaba-sentinel/src/main/java/org/springframework/cloud/alibaba/sentinel/custom/SentinelProtectInterceptor.java @@ -69,7 +69,7 @@ public class SentinelProtectInterceptor implements ClientHttpRequestInterceptor Entry hostEntry = null, hostWithPathEntry = null; ClientHttpResponse response; try { - ContextUtil.enter(hostResource); + ContextUtil.enter(hostWithPathResource); if (entryWithPath) { hostWithPathEntry = SphU.entry(hostWithPathResource); }