fix issue that the intercept class and the enhance class package name of the trace annotation plugin is incorrect

This commit is contained in:
ascrutae 2017-12-13 18:38:45 +08:00
parent 2fa0a41fbc
commit a4b49b28b4
3 changed files with 5 additions and 5 deletions

View File

@ -40,7 +40,7 @@ import static net.bytebuddy.matcher.ElementMatchers.named;
public class AutowiredAnnotationProcessorInstrumentation extends ClassInstanceMethodsEnhancePluginDefine {
private static final String ENHANCE_CLASS = "org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor";
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() {
return new ConstructorInterceptPoint[] {

View File

@ -37,8 +37,8 @@ import static net.bytebuddy.matcher.ElementMatchers.named;
*/
public class ActiveSpanTagActivation extends ClassStaticMethodsEnhancePluginDefine {
public static final String ENHANCE_CLASS = "ActiveSpan";
public static final String INTERCEPTOR_CLASS = "ActiveSpanTagInterceptor";
public static final String ENHANCE_CLASS = "org.apache.skywalking.apm.toolkit.trace.ActiveSpan";
public static final String INTERCEPTOR_CLASS = "org.apache.skywalking.apm.toolkit.activation.trace.ActiveSpanTagInterceptor";
public static final String INTERCEPTOR_METHOD_NAME = "tag";
@Override protected ConstructorInterceptPoint[] getConstructorsInterceptPoints() {

View File

@ -38,8 +38,8 @@ import static net.bytebuddy.matcher.ElementMatchers.named;
*/
public class TraceAnnotationActivation extends ClassInstanceMethodsEnhancePluginDefine {
public static final String TRACE_ANNOTATION_METHOD_INTERCEPTOR = "TraceAnnotationMethodInterceptor";
public static final String TRACE_ANNOTATION = "Trace";
public static final String TRACE_ANNOTATION_METHOD_INTERCEPTOR = "org.apache.skywalking.apm.toolkit.activation.trace.TraceAnnotationMethodInterceptor";
public static final String TRACE_ANNOTATION = "org.apache.skywalking.apm.toolkit.trace.Trace";
@Override protected ConstructorInterceptPoint[] getConstructorsInterceptPoints() {
return new ConstructorInterceptPoint[0];