[
https://issues.apache.org/jira/browse/SCB-1860?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17080287#comment-17080287
]
liubao commented on SCB-1860:
-----------------------------
This implementation seams not correct. Because java-chassis may execute in
reactive mode, and thread will change time to time in one request. MDC is a
thread local virable, and will not change/inherited when thread changes.
> 增强日志中TraceId传递,在设置线程绑定的InvocationContext同时设置
> --------------------------------------------
>
> Key: SCB-1860
> URL: https://issues.apache.org/jira/browse/SCB-1860
> Project: Apache ServiceComb
> Issue Type: Improvement
> Components: Java-Chassis
> Affects Versions: java-chassis-2.0.1
> Reporter: WangHonggang
> Priority: Minor
> Fix For: java-chassis-2.0.2
>
> Time Spent: 0.5h
> Remaining Estimate: 0h
>
> 当前的MDC的SERVICECOMB_TRACE_ID,必须使用特定的TraceIdLogger,对于日志打印不太友好,且每次都要设置和删除。
> 改进为在给线程绑定/解绑上下问时,设置此MDC
--
This message was sent by Atlassian Jira
(v8.3.4#803005)