未验证 提交 1a593abd 编写于 作者: wu-sheng's avatar wu-sheng 提交者: GitHub

Merge pull request #669 from ascrutae/fix/annotation-activation-plugin-issue

fix issue that the intercept class package name  is incorrect
...@@ -40,7 +40,7 @@ import static net.bytebuddy.matcher.ElementMatchers.named; ...@@ -40,7 +40,7 @@ import static net.bytebuddy.matcher.ElementMatchers.named;
public class AutowiredAnnotationProcessorInstrumentation extends ClassInstanceMethodsEnhancePluginDefine { public class AutowiredAnnotationProcessorInstrumentation extends ClassInstanceMethodsEnhancePluginDefine {
private static final String ENHANCE_CLASS = "org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor"; private static final String ENHANCE_CLASS = "org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor";
private static final String ENHANCE_METHOD = "determineCandidateConstructors"; private static final String ENHANCE_METHOD = "determineCandidateConstructors";
private static final String INTERCEPTOR_CLASS = "AutowiredAnnotationProcessorInterceptor"; private static final String INTERCEPTOR_CLASS = "org.apache.skywalking.apm.plugin.spring.patch.AutowiredAnnotationProcessorInterceptor";
@Override protected ConstructorInterceptPoint[] getConstructorsInterceptPoints() { @Override protected ConstructorInterceptPoint[] getConstructorsInterceptPoints() {
return new ConstructorInterceptPoint[] { return new ConstructorInterceptPoint[] {
......
...@@ -37,8 +37,8 @@ import static net.bytebuddy.matcher.ElementMatchers.named; ...@@ -37,8 +37,8 @@ import static net.bytebuddy.matcher.ElementMatchers.named;
*/ */
public class ActiveSpanTagActivation extends ClassStaticMethodsEnhancePluginDefine { public class ActiveSpanTagActivation extends ClassStaticMethodsEnhancePluginDefine {
public static final String ENHANCE_CLASS = "ActiveSpan"; public static final String ENHANCE_CLASS = "org.apache.skywalking.apm.toolkit.trace.ActiveSpan";
public static final String INTERCEPTOR_CLASS = "ActiveSpanTagInterceptor"; public static final String INTERCEPTOR_CLASS = "org.apache.skywalking.apm.toolkit.activation.trace.ActiveSpanTagInterceptor";
public static final String INTERCEPTOR_METHOD_NAME = "tag"; public static final String INTERCEPTOR_METHOD_NAME = "tag";
@Override protected ConstructorInterceptPoint[] getConstructorsInterceptPoints() { @Override protected ConstructorInterceptPoint[] getConstructorsInterceptPoints() {
......
...@@ -38,8 +38,8 @@ import static net.bytebuddy.matcher.ElementMatchers.named; ...@@ -38,8 +38,8 @@ import static net.bytebuddy.matcher.ElementMatchers.named;
*/ */
public class TraceAnnotationActivation extends ClassInstanceMethodsEnhancePluginDefine { public class TraceAnnotationActivation extends ClassInstanceMethodsEnhancePluginDefine {
public static final String TRACE_ANNOTATION_METHOD_INTERCEPTOR = "TraceAnnotationMethodInterceptor"; public static final String TRACE_ANNOTATION_METHOD_INTERCEPTOR = "org.apache.skywalking.apm.toolkit.activation.trace.TraceAnnotationMethodInterceptor";
public static final String TRACE_ANNOTATION = "Trace"; public static final String TRACE_ANNOTATION = "org.apache.skywalking.apm.toolkit.trace.Trace";
@Override protected ConstructorInterceptPoint[] getConstructorsInterceptPoints() { @Override protected ConstructorInterceptPoint[] getConstructorsInterceptPoints() {
return new ConstructorInterceptPoint[0]; return new ConstructorInterceptPoint[0];
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册