将 bizType 和 bizId 进行封装,实现 SkyWalking Tag 检索

This commit is contained in:
dark
2021-03-06 22:29:11 +08:00
parent 3018866c62
commit 4cc45d73fb
5 changed files with 93 additions and 4 deletions

View File

@@ -0,0 +1,22 @@
package cn.iocoder.dashboard.common.annotation;
import java.lang.annotation.*;
@Target({ElementType.METHOD})
@Retention(RetentionPolicy.RUNTIME)
@Inherited
/**
* 打印业务流水号/业务类型注解
*
* @author 麻薯
*/
public @interface BizTracing {
String BIZ_ID = "bizId";
String BIZ_TYPE = "bizType";
String bizId() default "NULL_ID";
String bizType() default "NULL_TYPE";
}