apache/dubbo

traceId missing from MDC in logs in Dubbo 3.3.2

オープン

#16,165 opened on 2026/03/24

 (2 件のコメント) (0 件のリアクション) (0 人の担当者)Java (26,453 件のフォーク)batch import
help wanted

Repository metrics

Stars
 (41,524 個のスター)
PR merge metrics
 (PR metrics pending)

説明

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?

コントリビューターガイド