apache/dubbo

traceId missing from MDC in logs in Dubbo 3.3.2

Open

#16,165 opened on 2026年3月24日

GitHub で見る
 (2 comments) (0 reactions) (0 assignees)Java (26,453 forks)batch import
help wanted

Repository metrics

Stars
 (41,524 stars)
PR merge metrics
 (平均マージ 7d 14h) (30d で 20 merged PRs)

説明

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?

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