类 TraceAnnotationMethodInterceptor
java.lang.Object
org.apache.skywalking.apm.toolkit.activation.trace.BaseTraceAnnotationInterceptor
org.apache.skywalking.apm.toolkit.activation.trace.TraceAnnotationMethodInterceptor
- 所有已实现的接口:
org.apache.skywalking.apm.agent.core.plugin.interceptor.enhance.InstanceMethodsAroundInterceptor
public class TraceAnnotationMethodInterceptor
extends BaseTraceAnnotationInterceptor
implements org.apache.skywalking.apm.agent.core.plugin.interceptor.enhance.InstanceMethodsAroundInterceptor
TraceAnnotationMethodInterceptor create a local span and set the operation name which fetch from
org.apache.skywalking.apm.toolkit.trace.annotation.Trace.operationName. if the fetch value is blank
string, and the operation name will be the method name.-
构造器概要
构造器 -
方法概要
修饰符和类型方法说明afterMethod(org.apache.skywalking.apm.agent.core.plugin.interceptor.enhance.EnhancedInstance objInst, Method method, Object[] allArguments, Class<?>[] argumentsTypes, Object ret) voidbeforeMethod(org.apache.skywalking.apm.agent.core.plugin.interceptor.enhance.EnhancedInstance objInst, Method method, Object[] allArguments, Class<?>[] argumentsTypes, org.apache.skywalking.apm.agent.core.plugin.interceptor.enhance.MethodInterceptResult result) voidhandleMethodException(org.apache.skywalking.apm.agent.core.plugin.interceptor.enhance.EnhancedInstance objInst, Method method, Object[] allArguments, Class<?>[] argumentsTypes, Throwable t)
-
构造器详细资料
-
TraceAnnotationMethodInterceptor
public TraceAnnotationMethodInterceptor()
-
-
方法详细资料
-
beforeMethod
public void beforeMethod(org.apache.skywalking.apm.agent.core.plugin.interceptor.enhance.EnhancedInstance objInst, Method method, Object[] allArguments, Class<?>[] argumentsTypes, org.apache.skywalking.apm.agent.core.plugin.interceptor.enhance.MethodInterceptResult result) throws Throwable - 指定者:
beforeMethod在接口中org.apache.skywalking.apm.agent.core.plugin.interceptor.enhance.InstanceMethodsAroundInterceptor- 抛出:
Throwable
-
afterMethod
public Object afterMethod(org.apache.skywalking.apm.agent.core.plugin.interceptor.enhance.EnhancedInstance objInst, Method method, Object[] allArguments, Class<?>[] argumentsTypes, Object ret) throws Throwable - 指定者:
afterMethod在接口中org.apache.skywalking.apm.agent.core.plugin.interceptor.enhance.InstanceMethodsAroundInterceptor- 抛出:
Throwable
-
handleMethodException
public void handleMethodException(org.apache.skywalking.apm.agent.core.plugin.interceptor.enhance.EnhancedInstance objInst, Method method, Object[] allArguments, Class<?>[] argumentsTypes, Throwable t) - 指定者:
handleMethodException在接口中org.apache.skywalking.apm.agent.core.plugin.interceptor.enhance.InstanceMethodsAroundInterceptor
-