…
MDC.put("X-B3-TraceId", UUID.randomUUID().toString().replaceAll("-", ""));
…
适用场景:
异步任务日志中不打印traceId
发布者:全栈程序员-站长,转载请注明出处:https://javaforall.net/230495.html原文链接:https://javaforall.net
日志中主动添加 TraceIdMDC put X B3 TraceId UUID randomUUID toString replaceAll 适用场景 异步任务日志中不打印 traceId
…
MDC.put("X-B3-TraceId", UUID.randomUUID().toString().replaceAll("-", ""));
…
适用场景:
异步任务日志中不打印traceId
发布者:全栈程序员-站长,转载请注明出处:https://javaforall.net/230495.html原文链接:https://javaforall.net