Annotation Interface APM


@Target({TYPE,METHOD}) @Retention(RUNTIME) @Documented public @interface APM
应用性能监控注解

标记需要进行性能监控的类或方法

主要功能: 1. 记录方法执行时间 2. 记录请求参数和响应结果 3. 记录异常信息 4. 发布APM事件供监听器处理

使用示例:

@APM
public void importantMethod() {
    // 此方法的执行会被监控和记录
}
Author:
Kerbores(kerbores@riemann.tech)