apache/dubbo

traceId missing from MDC in logs in Dubbo 3.3.2

Open

#16,165 建立於 2026年3月24日

在 GitHub 查看
 (2 留言) (0 反應) (0 負責人)Java (41,524 star) (26,453 fork)batch import
help wanted

描述

In Dubbo latest version 3.3.2, MDC.get("traceId") returns null even though the log pattern includes %X{traceId}. The call chain is web -> dubbo -> platform -> domains. Question: Is manual MDC.put required in a preHandler to propagate traceId?

貢獻者指南