Skip to content

Commit

Permalink
logback ouput optz
Browse files Browse the repository at this point in the history
  • Loading branch information
i36lib committed May 10, 2024
1 parent 8877b03 commit da18cfc
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -75,12 +75,12 @@ private String injectTraceId(String message) {
return message;
}

String preTrimMessage = AutoTraceCtx.getTraceId() + SEPARATOR;
String preTrimMessage = "[TraceId]" + AutoTraceCtx.getTraceId() + SEPARATOR;
if (Objects.nonNull(AutoTraceCtx.getSpanId())) {
preTrimMessage += AutoTraceCtx.getSpanId() + SEPARATOR;
preTrimMessage += "[SpanId]" + AutoTraceCtx.getSpanId() + SEPARATOR;
}
if (Objects.nonNull(AutoTraceCtx.getParentSpanId())) {
preTrimMessage += AutoTraceCtx.getParentSpanId() + SEPARATOR;
preTrimMessage += "[P-SpanId]" + AutoTraceCtx.getParentSpanId() + SEPARATOR;
}
trimMessage = preTrimMessage + trimMessage;
}
Expand Down

0 comments on commit da18cfc

Please sign in to comment.