Skip to content

Conversation

@Glser
Copy link

@Glser Glser commented Jan 14, 2026

[feat] 完成基于log4j2的日志模板开发、完成http单次调用的链路追踪、完成定时任务调用的链路追踪。

@Glser Glser closed this Jan 14, 2026
@Glser Glser reopened this Jan 14, 2026
@Glser
Copy link
Author

Glser commented Jan 14, 2026

@Geniusay @welsir 先帮看一下有没有什么问题啦,直接comment一下我到时候看

…dk-xgl

# Conflicts:
#	.github/workflows/PushSDK.yml
@isomd
Copy link
Contributor

isomd commented Jan 14, 2026

我think没什么问题

traceId = TmlLog.generateTraceId();
}
// 将 traceId 放入 MDC(key 是 "traceId",与 log4j2 配置的 %X{traceId} 对应)
MDC.put(TmlLog.TRACE_ID, traceId);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

MDC是ThreadLocal,不支持异步线程传递,线程池传递,服务间传递。会出现TraceID丢失的问题

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants