优化日志

This commit is contained in:
wulin 2023-11-23 10:14:12 +08:00
parent c6eb18e839
commit 1bd78fc291
2 changed files with 4 additions and 6 deletions

View File

@ -71,7 +71,7 @@ public class LogMdcConfiguration {
@Override
public void onSubscribe(Subscription subscription) {
//Tracer.createEntrySpan(Log4Constans.PRINT_LOG_ID, null);
coreSubscriber.onSubscribe(subscription);
}

View File

@ -92,12 +92,10 @@ public class LogWebFilter implements WebFilter {
log.info("api end time:{}, total time:{}", endTime, endTime - startTime);
//Tracer.stopSpan();
MDC.remove(Log4Constans.PRINT_LOG_ID);
}).contextWrite(ctx -> {
Context contextTmp = ctx.put(Log4Constans.PRINT_LOG_ID, tracId);
return contextTmp;
});
}
private ServerHttpRequest getRequest(ServerWebExchange exchange){