补全下 tracer 组件的注释
parent
22a09d079f
commit
81b1f3751a
@ -1,29 +0,0 @@
|
|||||||
package cn.iocoder.dashboard.framework.tracer.annotation;
|
|
||||||
|
|
||||||
import java.lang.annotation.*;
|
|
||||||
|
|
||||||
@Target({ElementType.METHOD})
|
|
||||||
@Retention(RetentionPolicy.RUNTIME)
|
|
||||||
@Inherited
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 打印业务流水号/业务类型注解
|
|
||||||
*
|
|
||||||
* @author 麻薯
|
|
||||||
*/
|
|
||||||
public @interface BizTracing {
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 交易流水tag名
|
|
||||||
*/
|
|
||||||
String BIZ_ID_TAG = "bizId";
|
|
||||||
/**
|
|
||||||
* 交易类型tag名
|
|
||||||
*/
|
|
||||||
String BIZ_TYPE_TAG = "bizType";
|
|
||||||
|
|
||||||
String bizId();
|
|
||||||
|
|
||||||
String bizType();
|
|
||||||
|
|
||||||
}
|
|
||||||
@ -0,0 +1,34 @@
|
|||||||
|
package cn.iocoder.dashboard.framework.tracer.core.annotation;
|
||||||
|
|
||||||
|
import java.lang.annotation.*;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 打印业务编号 / 业务类型注解
|
||||||
|
*
|
||||||
|
* @author 麻薯
|
||||||
|
*/
|
||||||
|
@Target({ElementType.METHOD})
|
||||||
|
@Retention(RetentionPolicy.RUNTIME)
|
||||||
|
@Inherited
|
||||||
|
public @interface BizTracing {
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 业务编号 tag 名
|
||||||
|
*/
|
||||||
|
String ID_TAG = "biz.id";
|
||||||
|
/**
|
||||||
|
* 业务类型 tag 名
|
||||||
|
*/
|
||||||
|
String TYPE_TAG = "biz.type";
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @return 业务编号
|
||||||
|
*/
|
||||||
|
String id();
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @return 业务类型
|
||||||
|
*/
|
||||||
|
String type();
|
||||||
|
|
||||||
|
}
|
||||||
Loading…
Reference in New Issue