格式修改/添加注释
parent
395f5234b1
commit
f9adeddad0
|
@ -12,6 +12,7 @@ import java.lang.annotation.*;
|
||||||
* @author 麻薯
|
* @author 麻薯
|
||||||
*/
|
*/
|
||||||
public @interface BizTracing {
|
public @interface BizTracing {
|
||||||
|
|
||||||
String BIZ_ID = "bizId";
|
String BIZ_ID = "bizId";
|
||||||
String BIZ_TYPE = "bizType";
|
String BIZ_TYPE = "bizType";
|
||||||
|
|
||||||
|
|
|
@ -22,11 +22,12 @@ package cn.iocoder.dashboard.framework.tracer.skywalking;
|
||||||
import ch.qos.logback.classic.PatternLayout;
|
import ch.qos.logback.classic.PatternLayout;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Based on the logback-compoenent convert register mechanism,
|
* Based on the logback-component convert register mechanism,
|
||||||
* register {@link LocalLogbackPatternConverter} as a new convert, match to "tid".
|
* register {@link LocalLogbackPatternConverter} as a new convert, match to "tid".
|
||||||
* You can use "%tid" in logback config file, "Pattern" section.
|
* You can use "%tid" in logback config file, "Pattern" section.
|
||||||
* If sky-walking agent is not active mode, it will use UUID as tid.
|
* If sky-walking agent is not active mode, it will use UUID as tid.
|
||||||
* <p>
|
* <p>
|
||||||
|
* logback 的转换组件,为tid 添加占位符的转换器
|
||||||
* Created by mashu on 2021/3/6.
|
* Created by mashu on 2021/3/6.
|
||||||
*/
|
*/
|
||||||
public class TraceIdPatternLogbackLayout extends PatternLayout {
|
public class TraceIdPatternLogbackLayout extends PatternLayout {
|
||||||
|
|
Loading…
Reference in New Issue