Skip to content

Commit 937b353

Browse files
committed
fix: remove previous request trace context (#173)
1 parent 321dd80 commit 937b353

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

arex-instrumentation/servlet/arex-httpservlet/src/main/java/io/arex/inst/httpservlet/ServletAdviceHelper.java

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -101,9 +101,7 @@ public static <TRequest, TResponse> Pair<TRequest, TResponse> onServiceEnter(
101101
String redirectRecordId = getRedirectRecordId(adapter, httpServletRequest);
102102
if (StringUtil.isNotEmpty(redirectRecordId)) {
103103
TraceContextManager.set(redirectRecordId);
104-
}
105-
106-
if (ContextManager.currentContext() == null) {
104+
} else {
107105
CaseEventDispatcher.onEvent(CaseEvent.ofEnterEvent());
108106
String caseId = adapter.getRequestHeader(httpServletRequest, ArexConstants.RECORD_ID);
109107
String excludeMockTemplate = adapter.getRequestHeader(httpServletRequest, ArexConstants.HEADER_EXCLUDE_MOCK);

0 commit comments

Comments
 (0)