Browse Source

Pull request #8154: KERNEL-14292 fix: 添加领域模块注解

Merge in CORE/base-third from ~ELIJAH/base-third:feature/x to feature/x

* commit '406ac3f82ea16f38efad946e27f47ef4543f7a43':
  KERNEL-14292 fix: 添加领域模块注解
feature/x
Elijah-杨铭锐 2 years ago
parent
commit
50a9f03cf9
  1. 28
      fine-skywalking-toolkit-trace/src/main/java/org/apache/skywalking/apm/toolkit/trace/TraceDomain.java

28
fine-skywalking-toolkit-trace/src/main/java/org/apache/skywalking/apm/toolkit/trace/TraceDomain.java

@ -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…
Cancel
Save