This is an automated email from the ASF dual-hosted git repository.
wusheng pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/skywalking.git
The following commit(s) were added to refs/heads/master by this push:
new beb807d only enhance child not all parent method (#2737)
beb807d is described below
commit beb807df81174f7416464345c977a5e01d05382c
Author: li.can <[email protected]>
AuthorDate: Thu May 23 17:08:31 2019 +0800
only enhance child not all parent method (#2737)
---
.../apm/toolkit/activation/trace/TraceAnnotationActivation.java | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git
a/apm-sniffer/apm-toolkit-activation/apm-toolkit-trace-activation/src/main/java/org/apache/skywalking/apm/toolkit/activation/trace/TraceAnnotationActivation.java
b/apm-sniffer/apm-toolkit-activation/apm-toolkit-trace-activation/src/main/java/org/apache/skywalking/apm/toolkit/activation/trace/TraceAnnotationActivation.java
index 33dd9c6..71477fc 100644
---
a/apm-sniffer/apm-toolkit-activation/apm-toolkit-trace-activation/src/main/java/org/apache/skywalking/apm/toolkit/activation/trace/TraceAnnotationActivation.java
+++
b/apm-sniffer/apm-toolkit-activation/apm-toolkit-trace-activation/src/main/java/org/apache/skywalking/apm/toolkit/activation/trace/TraceAnnotationActivation.java
@@ -21,6 +21,7 @@ package org.apache.skywalking.apm.toolkit.activation.trace;
import net.bytebuddy.description.method.MethodDescription;
import net.bytebuddy.matcher.ElementMatcher;
+import
org.apache.skywalking.apm.agent.core.plugin.interceptor.DeclaredInstanceMethodsInterceptPoint;
import
org.apache.skywalking.apm.agent.core.plugin.interceptor.InstanceMethodsInterceptPoint;
import
org.apache.skywalking.apm.agent.core.plugin.interceptor.enhance.ClassInstanceMethodsEnhancePluginDefine;
import org.apache.skywalking.apm.agent.core.plugin.match.ClassMatch;
@@ -47,7 +48,7 @@ public class TraceAnnotationActivation extends
ClassInstanceMethodsEnhancePlugin
@Override protected InstanceMethodsInterceptPoint[]
getInstanceMethodsInterceptPoints() {
return new InstanceMethodsInterceptPoint[] {
- new InstanceMethodsInterceptPoint() {
+ new DeclaredInstanceMethodsInterceptPoint() {
@Override public ElementMatcher<MethodDescription>
getMethodsMatcher() {
return isAnnotatedWith(named(TRACE_ANNOTATION));
}