apache/dubbo

traceId missing from MDC in logs in Dubbo 3.3.2

Open

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

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

倉庫指標

Star
 (41,524 star)
PR 合併指標
 (平均合併 7天 14小時) (30 天內合併 20 個 PR)

描述

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?

貢獻者指南