Browse Source
* commit '48c23ff1380c73430393a811a949b27b98b7da2c': REPORT-90408【系统管理】迁移、启用数据库失败 KERNEL-14292 fix: 添加领域模块注解final/11.0
superman
2 years ago
2 changed files with 34 additions and 2 deletions
@ -0,0 +1,28 @@
|
||||
package org.apache.skywalking.apm.toolkit.trace; |
||||
|
||||
import java.lang.annotation.ElementType; |
||||
import java.lang.annotation.Retention; |
||||
import java.lang.annotation.RetentionPolicy; |
||||
import java.lang.annotation.Target; |
||||
|
||||
/** |
||||
* 用于标记模块或者领域, 配合{@link Trace}使用 |
||||
* |
||||
* 若类和方法上同时定义,方法上的优先 |
||||
* |
||||
* 若{@link Trace#operationName()}为空, 最终生成的span名为: |
||||
* 领域名/简单类名#简单方法名。 |
||||
* 否则为: |
||||
* 领域名/operationName |
||||
* |
||||
* @author Elijah |
||||
* created on 2023-02-22 |
||||
*/ |
||||
@Target({ElementType.METHOD, ElementType.TYPE}) |
||||
@Retention(RetentionPolicy.RUNTIME) |
||||
public @interface TraceDomain { |
||||
|
||||
//领域名
|
||||
String value() default ""; |
||||
|
||||
} |
Loading…
Reference in new issue