apache/dubbo

traceId missing from MDC in logs in Dubbo 3.3.2

Open

#16165 opened on Mar 24, 2026

View on GitHub
 (2 comments) (0 reactions) (0 assignees)Java (41,524 stars) (26,453 forks)batch import
help wanted

Description

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?

Contributor guide