apache / apache/dubbo

traceId missing from MDC in logs in Dubbo 3.3.2

Open
#16,165 2 comments 0 reactions 0 assignees View on GitHub
help wanted
Dominant language
Java
Stars
41.6k
Forks
26.4k
Avg merge
15h 13m
Merged PRs (30d)
4

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

Open the contributing guide

Research direction

Start by reproducing the issue on Dubbo 3.3.2 with a log pattern containing %X{traceId}, checking MDC.get("traceId") across the web → dubbo → platform → domains call chain. Determine whether traceId is propagated automatically or requires manual MDC.put in a preHandler; done means the expected traceId is available in MDC and logs, or the required configuration is documented.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
distributed-systems, observability
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Quiet
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.