apache/dubbo

traceId missing from MDC in logs in Dubbo 3.3.2

Aperta

#16.165 aperta il 24 mar 2026

 (2 commenti) (0 reazioni) (0 assegnatari)Java (26.453 fork)batch import
help wanted

Metriche repository

Star
 (41.524 stelle)
Metriche merge PR
 (Metriche PR in attesa)

Descrizione

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?

Guida contributor