apache/dubbo

traceId missing from MDC in logs in Dubbo 3.3.2

Open

#16,165 opened on Mar 24, 2026

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

Repository metrics

Stars
 (41,524 stars)
PR merge metrics
 (Avg merge 8d 14h) (28 merged PRs in 30d)

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