apache/dubbo

traceId missing from MDC in logs in Dubbo 3.3.2

开放

#16,165 创建于 2026年3月24日

 (2 条评论) (0 个反应) (0 位负责人)Java (26,453 个派生)batch import
help wanted

仓库指标

星标
 (41,524 个星标)
PR 合并指标
 (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?

贡献者指南