Merge pull request #661 from ascrutae/fix/interceptor-class-incorrect
fix all interceptor class in plugin is incorrect
This commit is contained in:
commit
ea37839950
|
|
@ -38,7 +38,7 @@ import static net.bytebuddy.matcher.ElementMatchers.named;
|
|||
public class DubboInstrumentation extends ClassInstanceMethodsEnhancePluginDefine {
|
||||
|
||||
private static final String ENHANCE_CLASS = "com.alibaba.dubbo.monitor.support.MonitorFilter";
|
||||
private static final String INTERCEPT_CLASS = "DubboInterceptor";
|
||||
private static final String INTERCEPT_CLASS = "org.apache.skywalking.apm.plugin.dubbo.DubboInterceptor";
|
||||
|
||||
@Override
|
||||
protected ClassMatch enhanceClass() {
|
||||
|
|
|
|||
|
|
@ -38,7 +38,7 @@ public class JobExecutorInstrumentation extends ClassInstanceMethodsEnhancePlugi
|
|||
|
||||
private static final String ENHANCE_CLASS = "com.dangdang.ddframe.job.executor.AbstractElasticJobExecutor";
|
||||
|
||||
private static final String JOB_EXECUTOR_INTERCEPTOR_CLASS = "JobExecutorInterceptor";
|
||||
private static final String JOB_EXECUTOR_INTERCEPTOR_CLASS = "org.apache.skywalking.apm.plugin.esjob.JobExecutorInterceptor";
|
||||
|
||||
@Override protected ConstructorInterceptPoint[] getConstructorsInterceptPoints() {
|
||||
return new ConstructorInterceptPoint[0];
|
||||
|
|
|
|||
|
|
@ -48,7 +48,7 @@ public class DefaultHttpClientInstrumentation extends ClassInstanceMethodsEnhanc
|
|||
/**
|
||||
* Intercept class.
|
||||
*/
|
||||
private static final String INTERCEPT_CLASS = "DefaultHttpClientInterceptor";
|
||||
private static final String INTERCEPT_CLASS = "org.apache.skywalking.apm.plugin.feign.http.v9.DefaultHttpClientInterceptor";
|
||||
|
||||
@Override protected ClassMatch enhanceClass() {
|
||||
return byName(ENHANCE_CLASS);
|
||||
|
|
|
|||
|
|
@ -40,8 +40,8 @@ import static net.bytebuddy.matcher.ElementMatchers.named;
|
|||
public class ClientCallInstrumentation extends ClassInstanceMethodsEnhancePluginDefine {
|
||||
private static final String ENHANCE_CLASS = "io.grpc.internal.ClientCallImpl";
|
||||
private static final String ENHANCE_METHOD = "start";
|
||||
public static final String CONSTRUCTOR_CLASS = "ClientCallIConstructorInterceptor";
|
||||
public static final String START_METHOD_INTERCEPT_CLASS = "ClientCallStartInterceptor";
|
||||
public static final String CONSTRUCTOR_CLASS = "org.apache.skywalking.apm.plugin.grpc.v1.ClientCallIConstructorInterceptor";
|
||||
public static final String START_METHOD_INTERCEPT_CLASS = "org.apache.skywalking.apm.plugin.grpc.v1.ClientCallStartInterceptor";
|
||||
|
||||
@Override protected ConstructorInterceptPoint[] getConstructorsInterceptPoints() {
|
||||
return new ConstructorInterceptPoint[] {
|
||||
|
|
|
|||
|
|
@ -43,7 +43,7 @@ public class ClientCallsInstrumentation extends ClassStaticMethodsEnhancePluginD
|
|||
}
|
||||
|
||||
@Override public String getMethodsInterceptor() {
|
||||
return "ClientCallsMethodInterceptor";
|
||||
return "org.apache.skywalking.apm.plugin.grpc.v1.ClientCallsMethodInterceptor";
|
||||
}
|
||||
|
||||
@Override public boolean isOverrideArgs() {
|
||||
|
|
|
|||
|
|
@ -38,7 +38,7 @@ import static org.apache.skywalking.apm.agent.core.plugin.match.NameMatch.byName
|
|||
public class ManagedChannelInstrumentation extends ClassInstanceMethodsEnhancePluginDefine {
|
||||
private static final String ENHANCE_CLASS = "io.grpc.internal.ManagedChannelImpl";
|
||||
private static final String ENHANCE_METHOD = "newCall";
|
||||
public static final String INTERCEPT_CLASS = "ManagedChannelInterceptor";
|
||||
public static final String INTERCEPT_CLASS = "org.apache.skywalking.apm.plugin.grpc.v1.ManagedChannelInterceptor";
|
||||
|
||||
@Override protected ConstructorInterceptPoint[] getConstructorsInterceptPoints() {
|
||||
return new ConstructorInterceptPoint[0];
|
||||
|
|
|
|||
|
|
@ -41,11 +41,11 @@ import static org.apache.skywalking.apm.agent.core.plugin.match.NameMatch.byName
|
|||
public class StreamObserverToCallListenerInstrumentation extends ClassInstanceMethodsEnhancePluginDefine {
|
||||
private static final String ENHANCE_CLASS = "io.grpc.stub.ClientCalls$StreamObserverToCallListenerAdapter";
|
||||
public static final String ON_READY_METHOD = "onReady";
|
||||
public static final String ON_READY_INTERCEPT_CLASS = "StreamClientOnReadyInterceptor";
|
||||
public static final String ON_READY_INTERCEPT_CLASS = "org.apache.skywalking.apm.plugin.grpc.v1.StreamClientOnReadyInterceptor";
|
||||
public static final String ON_CLASS_METHOD = "onClose";
|
||||
public static final String ON_CLOSE_INTERCEPT_CLASS = "StreamClientOnCloseInterceptor";
|
||||
public static final String ON_CLOSE_INTERCEPT_CLASS = "org.apache.skywalking.apm.plugin.grpc.v1.StreamClientOnCloseInterceptor";
|
||||
public static final String ON_MESSAGE_METHOD = "onMessage";
|
||||
public static final String ON_MESSAGE_INTERCEPT_CLASS = "ClientCallOnNextInterceptor";
|
||||
public static final String ON_MESSAGE_INTERCEPT_CLASS = "org.apache.skywalking.apm.plugin.grpc.v1.ClientCallOnNextInterceptor";
|
||||
|
||||
@Override protected ConstructorInterceptPoint[] getConstructorsInterceptPoints() {
|
||||
return new ConstructorInterceptPoint[0];
|
||||
|
|
|
|||
|
|
@ -39,7 +39,7 @@ import static net.bytebuddy.matcher.ElementMatchers.named;
|
|||
public class StreamingServerCallHandlerInstrumentation extends ClassInstanceMethodsEnhancePluginDefine {
|
||||
private static final String ENHANCE_CLASS = "io.grpc.stub.ServerCalls$UnaryServerCallHandler";
|
||||
private static final String ENHANCE_METHOD = "startCall";
|
||||
public static final String INTERCEPT_CLASS = "ServerCallHandlerInterceptor";
|
||||
public static final String INTERCEPT_CLASS = "org.apache.skywalking.apm.plugin.grpc.v1.ServerCallHandlerInterceptor";
|
||||
|
||||
@Override protected ConstructorInterceptPoint[] getConstructorsInterceptPoints() {
|
||||
return new ConstructorInterceptPoint[0];
|
||||
|
|
|
|||
|
|
@ -42,13 +42,13 @@ import static org.apache.skywalking.apm.agent.core.plugin.match.NameMatch.byName
|
|||
public class StreamingServerCallListenerInstrumentation extends ClassInstanceMethodsEnhancePluginDefine {
|
||||
private static final String ENHANCE_CLASS = "io.grpc.stub.ServerCalls$StreamingServerCallHandler$StreamingServerCallListener";
|
||||
public static final String ON_READY_METHOD = "onReady";
|
||||
public static final String ON_READ_INTERCEPT_CLASS = "ServerCallOnReadyInterceptor";
|
||||
public static final String ON_READ_INTERCEPT_CLASS = "org.apache.skywalking.apm.plugin.grpc.v1.ServerCallOnReadyInterceptor";
|
||||
public static final String ON_HALF_CLOSE_METHOD = "onHalfClose";
|
||||
public static final String ON_HALF_CLOSE_INTERCEPT_CLASS = "ServerCallOnCloseInterceptor";
|
||||
public static final String ON_HALF_CLOSE_INTERCEPT_CLASS = "org.apache.skywalking.apm.plugin.grpc.v1.ServerCallOnCloseInterceptor";
|
||||
public static final String ON_MESSAGE_METHOD = "onMessage";
|
||||
public static final String ON_MESSAGE_INTERCEPT_CLASS = "ServerCallOnMessageInterceptor";
|
||||
public static final String ON_MESSAGE_INTERCEPT_CLASS = "org.apache.skywalking.apm.plugin.grpc.v1.ServerCallOnMessageInterceptor";
|
||||
public static final String ON_CANCEL_METHOD = "onCancel";
|
||||
public static final String ON_CANCEL_INTERCEPT_CLASS = "ServerCallOnCancelInterceptor";
|
||||
public static final String ON_CANCEL_INTERCEPT_CLASS = "org.apache.skywalking.apm.plugin.grpc.v1.ServerCallOnCancelInterceptor";
|
||||
|
||||
@Override protected ConstructorInterceptPoint[] getConstructorsInterceptPoints() {
|
||||
return new ConstructorInterceptPoint[0];
|
||||
|
|
|
|||
|
|
@ -37,7 +37,7 @@ import static net.bytebuddy.matcher.ElementMatchers.any;
|
|||
*/
|
||||
public class UnaryClientCallListenerInstrumentation extends ClassInstanceMethodsEnhancePluginDefine {
|
||||
private static final String ENHANCE_CLASS = "io.grpc.stub.ClientCalls$UnaryStreamToFuture";
|
||||
public static final String INTERCEPT_CLASS = "UnaryStreamToFutureConstructorInterceptor";
|
||||
public static final String INTERCEPT_CLASS = "org.apache.skywalking.apm.plugin.grpc.v1.UnaryStreamToFutureConstructorInterceptor";
|
||||
|
||||
@Override protected ConstructorInterceptPoint[] getConstructorsInterceptPoints() {
|
||||
return new ConstructorInterceptPoint[] {
|
||||
|
|
|
|||
|
|
@ -38,7 +38,7 @@ import static org.apache.skywalking.apm.agent.core.plugin.match.NameMatch.byName
|
|||
public class UnaryServerCallHandlerInstrumentation extends ClassInstanceMethodsEnhancePluginDefine {
|
||||
private static final String ENHANCE_CLASS = "io.grpc.stub.ServerCalls$StreamingServerCallHandler";
|
||||
private static final String ENHANCE_METHOD = "startCall";
|
||||
public static final String INTERCEPT_CLASS = "ServerCallHandlerInterceptor";
|
||||
public static final String INTERCEPT_CLASS = "org.apache.skywalking.apm.plugin.grpc.v1.ServerCallHandlerInterceptor";
|
||||
|
||||
@Override protected ConstructorInterceptPoint[] getConstructorsInterceptPoints() {
|
||||
return new ConstructorInterceptPoint[0];
|
||||
|
|
|
|||
|
|
@ -42,11 +42,11 @@ import static org.apache.skywalking.apm.agent.core.plugin.match.NameMatch.byName
|
|||
public class UnaryServerCallListenerInstrumentation extends ClassInstanceMethodsEnhancePluginDefine {
|
||||
private static final String ENHANCE_CLASS = "io.grpc.stub.ServerCalls$UnaryServerCallHandler$UnaryServerCallListener";
|
||||
public static final String ON_CLOSE_METHOD = "onHalfClose";
|
||||
public static final String ON_CLOSE_INTERCEPT_CLASS = "ServerCallOnCloseInterceptor";
|
||||
public static final String ON_CLOSE_INTERCEPT_CLASS = "org.apache.skywalking.apm.plugin.grpc.v1.ServerCallOnCloseInterceptor";
|
||||
public static final String ON_READY_METHOD = "onReady";
|
||||
public static final String ON_READY_INTERCEPT_CLASS = "ServerCallOnReadyInterceptor";
|
||||
public static final String ON_READY_INTERCEPT_CLASS = "org.apache.skywalking.apm.plugin.grpc.v1.ServerCallOnReadyInterceptor";
|
||||
public static final String ON_CANCEL_METHOD = "onCancel";
|
||||
public static final String ON_CANCEL_INTERCEPT_CLASS = "ServerCallOnCancelInterceptor";
|
||||
public static final String ON_CANCEL_INTERCEPT_CLASS = "org.apache.skywalking.apm.plugin.grpc.v1.ServerCallOnCancelInterceptor";
|
||||
|
||||
@Override protected ConstructorInterceptPoint[] getConstructorsInterceptPoints() {
|
||||
return new ConstructorInterceptPoint[0];
|
||||
|
|
|
|||
|
|
@ -35,7 +35,7 @@ import static org.apache.skywalking.apm.agent.core.plugin.match.NameMatch.byName
|
|||
public class JdbcXAConnectionInstrumentation extends AbstractConnectionInstrumentation {
|
||||
|
||||
public static final String ENHANCE_CLASS = "org.h2.jdbcx.JdbcXAConnection";
|
||||
public static final String CONSTRUCTOR_INTERCEPT_CLASS = "JdbcXAConnectionConstructorInterceptor";
|
||||
public static final String CONSTRUCTOR_INTERCEPT_CLASS = "org.apache.skywalking.apm.plugin.jdbc.h2.JdbcXAConnectionConstructorInterceptor";
|
||||
|
||||
@Override protected ConstructorInterceptPoint[] getConstructorsInterceptPoints() {
|
||||
return new ConstructorInterceptPoint[] {
|
||||
|
|
|
|||
|
|
@ -35,7 +35,7 @@ import static net.bytebuddy.matcher.ElementMatchers.any;
|
|||
*/
|
||||
public class PooledJdbcConnectionInstrumentation extends AbstractConnectionInstrumentation {
|
||||
|
||||
public static final String CONSTRUCTOR_INTERCEPT_CLASS = "PooledJdbcConnectionConstructorInterceptor";
|
||||
public static final String CONSTRUCTOR_INTERCEPT_CLASS = "org.apache.skywalking.apm.plugin.jdbc.h2.PooledJdbcConnectionConstructorInterceptor";
|
||||
public static final String ENHANCE_CLASS = "org.h2.jdbcx.JdbcXAConnection$PooledJdbcConnection";
|
||||
|
||||
@Override protected ConstructorInterceptPoint[] getConstructorsInterceptPoints() {
|
||||
|
|
|
|||
|
|
@ -31,7 +31,7 @@ import org.apache.skywalking.apm.agent.core.plugin.interceptor.ConstructorInterc
|
|||
*/
|
||||
public abstract class HttpClientInstrumentation extends ClassInstanceMethodsEnhancePluginDefine {
|
||||
|
||||
private static final String INTERCEPT_CLASS = "HttpClientExecuteInterceptor";
|
||||
private static final String INTERCEPT_CLASS = "org.apache.skywalking.apm.plugin.httpClient.v4.HttpClientExecuteInterceptor";
|
||||
|
||||
@Override
|
||||
protected ConstructorInterceptPoint[] getConstructorsInterceptPoints() {
|
||||
|
|
|
|||
|
|
@ -35,7 +35,7 @@ import static net.bytebuddy.matcher.ElementMatchers.named;
|
|||
*/
|
||||
public abstract class AbstractDriverInstrumentation extends ClassInstanceMethodsEnhancePluginDefine {
|
||||
|
||||
private static final String DRIVER_INTERCEPT_CLASS = "JDBCDriverInterceptor";
|
||||
private static final String DRIVER_INTERCEPT_CLASS = "org.apache.skywalking.apm.plugin.jdbc.JDBCDriverInterceptor";
|
||||
|
||||
@Override
|
||||
protected final ConstructorInterceptPoint[] getConstructorsInterceptPoints() {
|
||||
|
|
|
|||
|
|
@ -20,13 +20,13 @@
|
|||
package org.apache.skywalking.apm.plugin.jdbc.define;
|
||||
|
||||
public class Constants {
|
||||
public static final String CREATE_STATEMENT_INTERCEPT_CLASS = "JDBCStatementInterceptor";
|
||||
public static final String CREATE_STATEMENT_INTERCEPT_CLASS = "org.apache.skywalking.apm.plugin.jdbc.JDBCStatementInterceptor";
|
||||
|
||||
public static final String PREPARE_STATEMENT_INTERCEPT_CLASS = "JDBCPrepareStatementInterceptor";
|
||||
public static final String PREPARE_STATEMENT_INTERCEPT_CLASS = "org.apache.skywalking.apm.plugin.jdbc.JDBCPrepareStatementInterceptor";
|
||||
|
||||
public static final String PREPARE_CALL_INTERCEPT_CLASS = "JDBCPrepareCallInterceptor";
|
||||
public static final String PREPARE_CALL_INTERCEPT_CLASS = "org.apache.skywalking.apm.plugin.jdbc.JDBCPrepareCallInterceptor";
|
||||
|
||||
public static final String SERVICE_METHOD_INTERCEPT_CLASS = "ConnectionServiceMethodInterceptor";
|
||||
public static final String SERVICE_METHOD_INTERCEPT_CLASS = "org.apache.skywalking.apm.plugin.jdbc.ConnectionServiceMethodInterceptor";
|
||||
|
||||
public static final String PREPARE_STATEMENT_METHOD_NAME = "prepareStatement";
|
||||
|
||||
|
|
|
|||
|
|
@ -48,9 +48,9 @@ public class JedisClusterInstrumentation extends ClassInstanceMethodsEnhancePlug
|
|||
|
||||
private static final String ARGUMENT_TYPE_NAME = "redis.clients.jedis.HostAndPort";
|
||||
private static final String ENHANCE_CLASS = "redis.clients.jedis.JedisCluster";
|
||||
private static final String CONSTRUCTOR_WITH_LIST_HOSTANDPORT_ARG_INTERCEPT_CLASS = "JedisClusterConstructorWithListHostAndPortArgInterceptor";
|
||||
private static final String METHOD_INTERCEPT_CLASS = "JedisMethodInterceptor";
|
||||
private static final String CONSTRUCTOR_WITH_HOSTANDPORT_ARG_INTERCEPT_CLASS = "JedisClusterConstructorWithHostAndPortArgInterceptor";
|
||||
private static final String CONSTRUCTOR_WITH_LIST_HOSTANDPORT_ARG_INTERCEPT_CLASS = "Jorg.apache.skywalking.apm.plugin.jedis.v2.edisClusterConstructorWithListHostAndPortArgInterceptor";
|
||||
private static final String METHOD_INTERCEPT_CLASS = "org.apache.skywalking.apm.plugin.jedis.v2.JedisMethodInterceptor";
|
||||
private static final String CONSTRUCTOR_WITH_HOSTANDPORT_ARG_INTERCEPT_CLASS = "org.apache.skywalking.apm.plugin.jedis.v2.JedisClusterConstructorWithHostAndPortArgInterceptor";
|
||||
|
||||
@Override
|
||||
public ClassMatch enhanceClass() {
|
||||
|
|
|
|||
|
|
@ -49,10 +49,10 @@ public class JedisInstrumentation extends ClassInstanceMethodsEnhancePluginDefin
|
|||
|
||||
private static final String HOST_AND_PORT_ARG_TYPE_NAME = "redis.clients.jedis.HostAndPort";
|
||||
private static final String ENHANCE_CLASS = "redis.clients.jedis.Jedis";
|
||||
private static final String CONSTRUCTOR_WITH_STRING_ARG_INTERCEPT_CLASS = "JedisConstructorWithStringArgInterceptor";
|
||||
private static final String CONSTRUCTOR_WITH_SHARD_INFO_ARG_INTERCEPT_CLASS = "JedisConstructorWithShardInfoArgInterceptor";
|
||||
private static final String CONSTRUCTOR_WITH_URI_ARG_INTERCEPT_CLASS = "JedisConstructorWithUriArgInterceptor";
|
||||
private static final String JEDIS_METHOD_INTERCET_CLASS = "JedisMethodInterceptor";
|
||||
private static final String CONSTRUCTOR_WITH_STRING_ARG_INTERCEPT_CLASS = "org.apache.skywalking.apm.plugin.jedis.v2.JedisConstructorWithStringArgInterceptor";
|
||||
private static final String CONSTRUCTOR_WITH_SHARD_INFO_ARG_INTERCEPT_CLASS = "org.apache.skywalking.apm.plugin.jedis.v2.JedisConstructorWithShardInfoArgInterceptor";
|
||||
private static final String CONSTRUCTOR_WITH_URI_ARG_INTERCEPT_CLASS = "org.apache.skywalking.apm.plugin.jedis.v2.JedisConstructorWithUriArgInterceptor";
|
||||
private static final String JEDIS_METHOD_INTERCET_CLASS = "org.apache.skywalking.apm.plugin.jedis.v2.JedisMethodInterceptor";
|
||||
|
||||
@Override
|
||||
public ClassMatch enhanceClass() {
|
||||
|
|
|
|||
|
|
@ -40,7 +40,7 @@ public class JettyInstrumentation extends ClassInstanceMethodsEnhancePluginDefin
|
|||
|
||||
private static final String ENHANCE_CLASS = "org.eclipse.jetty.server.Server";
|
||||
private static final String ENHANCE_METHOD = "handle";
|
||||
private static final String INTERCEPTOR_CLASS = "HandleInterceptor";
|
||||
private static final String INTERCEPTOR_CLASS = "org.apache.skywalking.apm.plugin.jetty.v9.server.HandleInterceptor";
|
||||
|
||||
@Override protected ConstructorInterceptPoint[] getConstructorsInterceptPoints() {
|
||||
return new ConstructorInterceptPoint[0];
|
||||
|
|
|
|||
|
|
@ -48,7 +48,7 @@ public class MongoDBCollectionImplInstrumentation extends ClassInstanceMethodsEn
|
|||
|
||||
private static final String ENHANCE_CLASS = "com.mongodb.DBCollectionImpl";
|
||||
|
||||
private static final String MONGDB_METHOD_INTERCET_CLASS = "MongoDBCollectionMethodInterceptor";
|
||||
private static final String MONGDB_METHOD_INTERCET_CLASS = "org.apache.skywalking.apm.plugin.mongodb.v2.MongoDBCollectionMethodInterceptor";
|
||||
|
||||
@Override
|
||||
protected ConstructorInterceptPoint[] getConstructorsInterceptPoints() {
|
||||
|
|
|
|||
|
|
@ -52,7 +52,7 @@ public class MongoDBCollectionInstrumentation extends ClassInstanceMethodsEnhanc
|
|||
|
||||
private static final String ENHANCE_CLASS = "com.mongodb.DBCollection";
|
||||
|
||||
private static final String MONGDB_METHOD_INTERCET_CLASS = "MongoDBCollectionMethodInterceptor";
|
||||
private static final String MONGDB_METHOD_INTERCET_CLASS = "org.apache.skywalking.apm.plugin.mongodb.v2.MongoDBCollectionMethodInterceptor";
|
||||
|
||||
@Override
|
||||
protected ConstructorInterceptPoint[] getConstructorsInterceptPoints() {
|
||||
|
|
|
|||
|
|
@ -34,7 +34,7 @@ public class MongoDBInstrumentation extends ClassInstanceMethodsEnhancePluginDef
|
|||
|
||||
private static final String ENHANCE_CLASS = "com.mongodb.Mongo";
|
||||
|
||||
private static final String MONGDB_METHOD_INTERCET_CLASS = "MongoDBMethodInterceptor";
|
||||
private static final String MONGDB_METHOD_INTERCET_CLASS = "org.apache.skywalking.apm.plugin.mongodb.v3.MongoDBMethodInterceptor";
|
||||
|
||||
@Override
|
||||
protected ConstructorInterceptPoint[] getConstructorsInterceptPoints() {
|
||||
|
|
|
|||
|
|
@ -40,7 +40,7 @@ public class MotanConsumerInstrumentation extends ClassInstanceMethodsEnhancePlu
|
|||
|
||||
private static final String ENHANCE_CLASS = "com.weibo.api.motan.transport.ProviderMessageRouter";
|
||||
|
||||
private static final String INVOKE_INTERCEPT_CLASS = "MotanProviderInterceptor";
|
||||
private static final String INVOKE_INTERCEPT_CLASS = "org.apache.skywalking.apm.plugin.motan.MotanProviderInterceptor";
|
||||
|
||||
@Override
|
||||
protected ClassMatch enhanceClass() {
|
||||
|
|
|
|||
|
|
@ -49,11 +49,11 @@ public class MotanProviderInstrumentation extends ClassInstanceMethodsEnhancePlu
|
|||
/**
|
||||
* Class that intercept all constructor of ${@link com.weibo.api.motan.rpc.AbstractProvider}.
|
||||
*/
|
||||
private static final String CONSTRUCTOR_INTERCEPT_CLASS = "MotanConsumerInterceptor";
|
||||
private static final String CONSTRUCTOR_INTERCEPT_CLASS = "org.apache.skywalking.apm.plugin.motan.MotanConsumerInterceptor";
|
||||
/**
|
||||
* Class that intercept {@link com.weibo.api.motan.rpc.AbstractProvider#call(Request)}.
|
||||
*/
|
||||
private static final String PROVIDER_INVOKE_INTERCEPT_CLASS = "MotanConsumerInterceptor";
|
||||
private static final String PROVIDER_INVOKE_INTERCEPT_CLASS = "org.apache.skywalking.apm.plugin.motan.MotanConsumerInterceptor";
|
||||
|
||||
@Override
|
||||
protected ClassMatch enhanceClass() {
|
||||
|
|
|
|||
|
|
@ -40,7 +40,7 @@ import static org.apache.skywalking.apm.plugin.jdbc.mysql.define.MultiClassNameM
|
|||
*/
|
||||
public class CallableInstrumentation extends ClassInstanceMethodsEnhancePluginDefine {
|
||||
private static final String ENHANCE_CLASS = "com.mysql.jdbc.CallableStatement";
|
||||
private static final String SERVICE_METHOD_INTERCEPTOR = "StatementExecuteMethodsInterceptor";
|
||||
private static final String SERVICE_METHOD_INTERCEPTOR = "org.apache.skywalking.apm.plugin.jdbc.mysql.StatementExecuteMethodsInterceptor";
|
||||
|
||||
@Override protected ConstructorInterceptPoint[] getConstructorsInterceptPoints() {
|
||||
return new ConstructorInterceptPoint[0];
|
||||
|
|
|
|||
|
|
@ -55,7 +55,7 @@ public abstract class ConnectionInstrumentation extends ClassInstanceMethodsEnha
|
|||
}
|
||||
|
||||
@Override public String getMethodsInterceptor() {
|
||||
return "CreatePreparedStatementInterceptor";
|
||||
return "org.apache.skywalking.apm.plugin.jdbc.mysql.CreatePreparedStatementInterceptor";
|
||||
}
|
||||
|
||||
@Override public boolean isOverrideArgs() {
|
||||
|
|
@ -68,7 +68,7 @@ public abstract class ConnectionInstrumentation extends ClassInstanceMethodsEnha
|
|||
}
|
||||
|
||||
@Override public String getMethodsInterceptor() {
|
||||
return "CreateCallableStatementInterceptor";
|
||||
return "org.apache.skywalking.apm.plugin.jdbc.mysql.CreateCallableStatementInterceptor";
|
||||
}
|
||||
|
||||
@Override public boolean isOverrideArgs() {
|
||||
|
|
@ -81,7 +81,7 @@ public abstract class ConnectionInstrumentation extends ClassInstanceMethodsEnha
|
|||
}
|
||||
|
||||
@Override public String getMethodsInterceptor() {
|
||||
return "CreateStatementInterceptor";
|
||||
return "org.apache.skywalking.apm.plugin.jdbc.mysql.CreateStatementInterceptor";
|
||||
}
|
||||
|
||||
@Override public boolean isOverrideArgs() {
|
||||
|
|
|
|||
|
|
@ -44,7 +44,7 @@ import static org.apache.skywalking.apm.plugin.jdbc.mysql.define.MultiClassNameM
|
|||
public class PreparedStatementInstrumentation extends ClassInstanceMethodsEnhancePluginDefine {
|
||||
|
||||
private static final String PREPARED_STATEMENT_CLASS_NAME = "com.mysql.jdbc.PreparedStatement";
|
||||
private static final String SERVICE_METHOD_INTERCEPTOR = "StatementExecuteMethodsInterceptor";
|
||||
private static final String SERVICE_METHOD_INTERCEPTOR = "org.apache.skywalking.apm.plugin.jdbc.mysql.StatementExecuteMethodsInterceptor";
|
||||
public static final String MYSQL6_PREPARED_STATEMENT_CLASS_NAME = "com.mysql.cj.jdbc.PreparedStatement";
|
||||
public static final String JDBC42_PREPARED_STATEMENT_CLASS_NAME = "com.mysql.jdbc.JDBC42PreparedStatement";
|
||||
|
||||
|
|
|
|||
|
|
@ -46,7 +46,7 @@ import static org.apache.skywalking.apm.plugin.jdbc.mysql.define.MultiClassNameM
|
|||
*/
|
||||
public class StatementInstrumentation extends ClassInstanceMethodsEnhancePluginDefine {
|
||||
private static final String STATEMENT_CLASS_NAME = "com.mysql.jdbc.StatementImpl";
|
||||
private static final String SERVICE_METHOD_INTERCEPTOR = "StatementExecuteMethodsInterceptor";
|
||||
private static final String SERVICE_METHOD_INTERCEPTOR = "org.apache.skywalking.apm.plugin.jdbc.mysql.StatementExecuteMethodsInterceptor";
|
||||
public static final String MYSQL6_STATEMENT_CLASS_NAME = "com.mysql.cj.jdbc.StatementImpl";
|
||||
|
||||
@Override protected ConstructorInterceptPoint[] getConstructorsInterceptPoints() {
|
||||
|
|
|
|||
|
|
@ -32,8 +32,8 @@ import static net.bytebuddy.matcher.ElementMatchers.named;
|
|||
public abstract class AbstractNutzHttpInstrumentation extends ClassInstanceMethodsEnhancePluginDefine {
|
||||
|
||||
private static final String DO_SEND_METHOD_NAME = "send";
|
||||
private static final String DO_SEND_INTERCEPTOR = "SenderSendInterceptor";
|
||||
private static final String DO_CONSTRUCTOR_INTERCEPTOR = "SenderConstructorInterceptor";
|
||||
private static final String DO_SEND_INTERCEPTOR = "org.apache.skywalking.apm.plugin.nutz.http.sync.SenderSendInterceptor";
|
||||
private static final String DO_CONSTRUCTOR_INTERCEPTOR = "org.apache.skywalking.apm.plugin.nutz.http.sync.SenderConstructorInterceptor";
|
||||
|
||||
@Override
|
||||
protected ConstructorInterceptPoint[] getConstructorsInterceptPoints() {
|
||||
|
|
|
|||
|
|
@ -46,7 +46,7 @@ public class ActionInstrumentation extends ClassInstanceMethodsEnhancePluginDefi
|
|||
|
||||
@Override
|
||||
public String getConstructorInterceptor() {
|
||||
return "ActionConstructorInterceptor";
|
||||
return "org.apache.skywalking.apm.plugin.nutz.mvc.ActionConstructorInterceptor";
|
||||
}
|
||||
}
|
||||
};
|
||||
|
|
@ -63,7 +63,7 @@ public class ActionInstrumentation extends ClassInstanceMethodsEnhancePluginDefi
|
|||
|
||||
@Override
|
||||
public String getMethodsInterceptor() {
|
||||
return "ActionMethodInterceptor";
|
||||
return "org.apache.skywalking.apm.plugin.nutz.mvc.ActionMethodInterceptor";
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
|
|||
|
|
@ -49,7 +49,7 @@ public class RealCallInstrumentation extends ClassInstanceMethodsEnhancePluginDe
|
|||
/**
|
||||
* Intercept class.
|
||||
*/
|
||||
private static final String INTERCEPT_CLASS = "RealCallInterceptor";
|
||||
private static final String INTERCEPT_CLASS = "org.apache.skywalking.apm.plugin.okhttp.v3.RealCallInterceptor";
|
||||
|
||||
@Override protected ClassMatch enhanceClass() {
|
||||
return NameMatch.byName(ENHANCE_CLASS);
|
||||
|
|
|
|||
|
|
@ -49,7 +49,7 @@ import static org.apache.skywalking.apm.agent.core.plugin.match.NameMatch.byName
|
|||
public class AbstractJdbc2StatementInstrumentation extends ClassInstanceMethodsEnhancePluginDefine {
|
||||
|
||||
private static final String ENHANCE_CLASS = "org.postgresql.jdbc2.AbstractJdbc2Statement";
|
||||
private static final String INTERCEPTOR_CLASS = "StatementExecuteMethodsInterceptor";
|
||||
private static final String INTERCEPTOR_CLASS = "org.apache.skywalking.apm.plugin.jdbc.postgresql.StatementExecuteMethodsInterceptor";
|
||||
|
||||
@Override protected ConstructorInterceptPoint[] getConstructorsInterceptPoints() {
|
||||
return new ConstructorInterceptPoint[0];
|
||||
|
|
|
|||
|
|
@ -48,7 +48,7 @@ import static org.apache.skywalking.apm.agent.core.plugin.match.NameMatch.byName
|
|||
*/
|
||||
public class ConnectionInstrumentation extends ClassInstanceMethodsEnhancePluginDefine {
|
||||
|
||||
private static final String PREPARE_STATEMENT_METHOD_WITH_STRING_ARRAY_INTERCEPTOR_CLASS = "JDBCPrepareStatementWithStringArrayInterceptor";
|
||||
private static final String PREPARE_STATEMENT_METHOD_WITH_STRING_ARRAY_INTERCEPTOR_CLASS = "org.apache.skywalking.apm.plugin.jdbc.postgresql.JDBCPrepareStatementWithStringArrayInterceptor";
|
||||
public static final String ENHANCE_CLASS = "org.postgresql.jdbc.PgConnection";
|
||||
public static final String STRING_ARRAY_ARGUMENT_TYPE = "java.lang.String[]";
|
||||
|
||||
|
|
|
|||
|
|
@ -25,8 +25,8 @@ package org.apache.skywalking.apm.plugin.jdbc.postgresql.define;
|
|||
* @author zhangxin
|
||||
*/
|
||||
public class Constants {
|
||||
public static final String CREATE_STATEMENT_INTERCEPTOR_CLASS = "CreateStatementInterceptor";
|
||||
public static final String CREATE_PREPARED_STATEMENT_INTERCEPTOR_CLASS = "CreatePreparedStatementInterceptor";
|
||||
public static final String CREATE_CALLABLE_STATEMENT_INTERCEPTOR_CLASS = "CreateCallableStatementInterceptor";
|
||||
public static final String CREATE_STATEMENT_INTERCEPTOR_CLASS = "org.apache.skywalking.apm.plugin.jdbc.postgresql.CreateStatementInterceptor";
|
||||
public static final String CREATE_PREPARED_STATEMENT_INTERCEPTOR_CLASS = "org.apache.skywalking.apm.plugin.jdbc.postgresql.CreatePreparedStatementInterceptor";
|
||||
public static final String CREATE_CALLABLE_STATEMENT_INTERCEPTOR_CLASS = "org.apache.skywalking.apm.plugin.jdbc.postgresql.CreateCallableStatementInterceptor";
|
||||
|
||||
}
|
||||
|
|
|
|||
|
|
@ -40,7 +40,7 @@ public class ResinV3Instrumentation extends ClassInstanceMethodsEnhancePluginDef
|
|||
|
||||
private static final String ENHANCE_CLASS = "com.caucho.server.dispatch.ServletInvocation";
|
||||
|
||||
private static final String METHOD_INTERCET_CLASS = "ResinV3Interceptor";
|
||||
private static final String METHOD_INTERCET_CLASS = "org.apache.skywalking.apm.plugin.resin.v3.ResinV3Interceptor";
|
||||
|
||||
@Override
|
||||
protected ConstructorInterceptPoint[] getConstructorsInterceptPoints() {
|
||||
|
|
|
|||
|
|
@ -39,7 +39,7 @@ import static org.apache.skywalking.apm.agent.core.plugin.match.NameMatch.byName
|
|||
public class ResinV4Instrumentation extends ClassInstanceMethodsEnhancePluginDefine {
|
||||
private static final String ENHANCE_CLASS = "com.caucho.server.dispatch.ServletInvocation";
|
||||
|
||||
private static final String METHOD_INTERCET_CLASS = "ResinV4Interceptor";
|
||||
private static final String METHOD_INTERCET_CLASS = "org.apache.skywalking.apm.plugin.resin.v4.ResinV4Interceptor";
|
||||
|
||||
@Override
|
||||
protected ConstructorInterceptPoint[] getConstructorsInterceptPoints() {
|
||||
|
|
|
|||
|
|
@ -39,7 +39,7 @@ import static net.bytebuddy.matcher.ElementMatchers.named;
|
|||
public class ConsumeMessageConcurrentlyInstrumentation extends ClassInstanceMethodsEnhancePluginDefine {
|
||||
private static final String ENHANCE_CLASS = "org.apache.rocketmq.client.consumer.listener.MessageListenerConcurrently";
|
||||
private static final String CONSUMER_MESSAGE_METHOD = "consumeMessage";
|
||||
private static final String INTERCEPTOR_CLASS = "org.apache.rocketmq.common.message.MessageConcurrentlyConsumeInterceptor";
|
||||
private static final String INTERCEPTOR_CLASS = "org.apache.skywalking.apm.plugin.rocketMQ.v4.MessageConcurrentlyConsumeInterceptor";
|
||||
|
||||
@Override protected ConstructorInterceptPoint[] getConstructorsInterceptPoints() {
|
||||
return new ConstructorInterceptPoint[0];
|
||||
|
|
|
|||
|
|
@ -39,7 +39,7 @@ import static org.apache.skywalking.apm.agent.core.plugin.match.HierarchyMatch.b
|
|||
public class ConsumeMessageOrderlyInstrumentation extends ClassInstanceMethodsEnhancePluginDefine {
|
||||
private static final String ENHANCE_CLASS = "org.apache.rocketmq.client.consumer.listener.MessageListenerOrderly";
|
||||
private static final String ENHANCE_METHOD = "consumeMessage";
|
||||
private static final String INTERCEPTOR_CLASS = "org.apache.rocketmq.common.message.MessageOrderlyConsumeInterceptor";
|
||||
private static final String INTERCEPTOR_CLASS = "org.apache.skywalking.apm.plugin.rocketMQ.v4.MessageOrderlyConsumeInterceptor";
|
||||
|
||||
@Override protected ConstructorInterceptPoint[] getConstructorsInterceptPoints() {
|
||||
return new ConstructorInterceptPoint[0];
|
||||
|
|
|
|||
|
|
@ -45,8 +45,8 @@ public class MQClientAPIImplInstrumentation extends ClassInstanceMethodsEnhanceP
|
|||
|
||||
private static final String ENHANCE_CLASS = "org.apache.rocketmq.client.impl.MQClientAPIImpl";
|
||||
private static final String SEND_MESSAGE_METHOD_NAME = "sendMessage";
|
||||
private static final String ASYNC_METHOD_INTERCEPTOR = "MessageSendInterceptor";
|
||||
public static final String UPDATE_NAME_SERVER_INTERCEPT_CLASS = "UpdateNameServerInterceptor";
|
||||
private static final String ASYNC_METHOD_INTERCEPTOR = "org.apache.skywalking.apm.plugin.rocketMQ.v4.MessageSendInterceptor";
|
||||
public static final String UPDATE_NAME_SERVER_INTERCEPT_CLASS = "org.apache.skywalking.apm.plugin.rocketMQ.v4.UpdateNameServerInterceptor";
|
||||
public static final String UPDATE_NAME_SERVER_METHOD_NAME = "updateNameServerAddressList";
|
||||
|
||||
@Override protected ConstructorInterceptPoint[] getConstructorsInterceptPoints() {
|
||||
|
|
|
|||
|
|
@ -43,9 +43,9 @@ public class SendCallbackInstrumentation extends ClassInstanceMethodsEnhancePlug
|
|||
|
||||
private static final String ENHANCE_CLASS = "org.apache.rocketmq.client.producer.SendCallback";
|
||||
private static final String ON_SUCCESS_ENHANCE_METHOD = "onSuccess";
|
||||
private static final String ON_SUCCESS_INTERCEPTOR = "OnSuccessInterceptor";
|
||||
private static final String ON_SUCCESS_INTERCEPTOR = "org.apache.skywalking.apm.plugin.rocketMQ.v4.OnSuccessInterceptor";
|
||||
private static final String ON_EXCEPTION_METHOD = "onException";
|
||||
private static final String ON_EXCEPTION_INTERCEPTOR = "OnExceptionInterceptor";
|
||||
private static final String ON_EXCEPTION_INTERCEPTOR = "org.apache.skywalking.apm.plugin.rocketMQ.v4.OnExceptionInterceptor";
|
||||
|
||||
@Override protected ConstructorInterceptPoint[] getConstructorsInterceptPoints() {
|
||||
return new ConstructorInterceptPoint[0];
|
||||
|
|
|
|||
|
|
@ -39,11 +39,11 @@ public class ExecutorInstrumentation extends ClassInstanceMethodsEnhancePluginDe
|
|||
|
||||
private static final String ENHANCE_CLASS = "com.dangdang.ddframe.rdb.sharding.executor.ExecutorEngine";
|
||||
|
||||
private static final String EXECUTOR_ENGINE_CONSTRUCTOR_INTERCEPTOR_CLASS = "ExecutorEngineConstructorInterceptor";
|
||||
private static final String EXECUTOR_ENGINE_CONSTRUCTOR_INTERCEPTOR_CLASS = "org.apache.skywalking.apm.plugin.sjdbc.define.ExecutorEngineConstructorInterceptor";
|
||||
|
||||
private static final String EXECUTE_INTERCEPTOR_CLASS = "ExecuteInterceptor";
|
||||
private static final String EXECUTE_INTERCEPTOR_CLASS = "org.apache.skywalking.apm.plugin.sjdbc.define.ExecuteInterceptor";
|
||||
|
||||
private static final String ASYNC_EXECUTE_INTERCEPTOR_CLASS = "AsyncExecuteInterceptor";
|
||||
private static final String ASYNC_EXECUTE_INTERCEPTOR_CLASS = "org.apache.skywalking.apm.plugin.sjdbc.define.AsyncExecuteInterceptor";
|
||||
|
||||
@Override
|
||||
protected ConstructorInterceptPoint[] getConstructorsInterceptPoints() {
|
||||
|
|
|
|||
|
|
@ -40,7 +40,7 @@ public class AopProxyFactoryInstrumentation extends ClassInstanceMethodsEnhanceP
|
|||
|
||||
private static final String ENHANCE_CLASS = "org.springframework.aop.framework.DefaultAopProxyFactory";
|
||||
public static final String ENHANCE_METHOD = "hasNoUserSuppliedProxyInterfaces";
|
||||
public static final String INTERCEPT_CLASS = "CreateAopProxyInterceptor";
|
||||
public static final String INTERCEPT_CLASS = "org.apache.skywalking.apm.plugin.spring.patch.CreateAopProxyInterceptor";
|
||||
|
||||
@Override protected final ConstructorInterceptPoint[] getConstructorsInterceptPoints() {
|
||||
return new ConstructorInterceptPoint[0];
|
||||
|
|
|
|||
|
|
@ -40,7 +40,7 @@ import static org.apache.skywalking.apm.plugin.spring.mvc.commons.Constants.REQU
|
|||
*/
|
||||
public class ControllerInstrumentation extends AbstractSpring3Instrumentation {
|
||||
public static final String CONTROLLER_ENHANCE_ANNOTATION = "org.springframework.stereotype.Controller";
|
||||
public static final String CONSTRUCTOR_INTERCEPTOR = "ControllerConstructorInterceptor";
|
||||
public static final String CONSTRUCTOR_INTERCEPTOR = "org.apache.skywalking.apm.plugin.spring.mvc.v3.ControllerConstructorInterceptor";
|
||||
public static final String REQUEST_MAPPING_ENHANCE_ANNOTATION = "org.springframework.web.bind.annotation.RequestMapping";
|
||||
|
||||
@Override
|
||||
|
|
|
|||
|
|
@ -37,7 +37,7 @@ import static org.apache.skywalking.apm.agent.core.plugin.match.NameMatch.byName
|
|||
public class HandlerMethodInvokerInstrumentation extends AbstractSpring3Instrumentation {
|
||||
private static final String ENHANCE_CLASS = "org.springframework.web.bind.annotation.support.HandlerMethodInvoker";
|
||||
private static final String ENHANCE_METHOD = "invokeHandlerMethod";
|
||||
private static final String INTERCEPTOR_CLASS = "HandlerMethodInvokerInterceptor";
|
||||
private static final String INTERCEPTOR_CLASS = "org.apache.skywalking.apm.plugin.spring.mvc.v3.HandlerMethodInvokerInterceptor";
|
||||
|
||||
@Override protected ConstructorInterceptPoint[] getConstructorsInterceptPoints() {
|
||||
return new ConstructorInterceptPoint[0];
|
||||
|
|
|
|||
|
|
@ -58,7 +58,7 @@ public abstract class AbstractControllerInstrumentation extends AbstractSpring4I
|
|||
|
||||
@Override
|
||||
public String getConstructorInterceptor() {
|
||||
return "ControllerConstructorInterceptor";
|
||||
return "org.apache.skywalking.apm.plugin.spring.mvc.v4.ControllerConstructorInterceptor";
|
||||
}
|
||||
}
|
||||
};
|
||||
|
|
|
|||
|
|
@ -53,8 +53,8 @@ public class ControllerInstrumentationTest {
|
|||
public void testGetInstanceMethodsInterceptPoints() throws Throwable {
|
||||
InstanceMethodsInterceptPoint[] methodPoints = controllerInstrumentation.getInstanceMethodsInterceptPoints();
|
||||
assertThat(methodPoints.length, is(2));
|
||||
assertThat(methodPoints[0].getMethodsInterceptor(), is("RequestMappingMethodInterceptor"));
|
||||
assertThat(methodPoints[1].getMethodsInterceptor(), is("RestMappingMethodInterceptor"));
|
||||
assertThat(methodPoints[0].getMethodsInterceptor(), is("org.apache.skywalking.apm.plugin.spring.mvc.commons.interceptor.RequestMappingMethodInterceptor"));
|
||||
assertThat(methodPoints[1].getMethodsInterceptor(), is("org.apache.skywalking.apm.plugin.spring.mvc.commons.interceptor.RestMappingMethodInterceptor"));
|
||||
|
||||
Assert.assertFalse(methodPoints[0].isOverrideArgs());
|
||||
Assert.assertFalse(methodPoints[1].isOverrideArgs());
|
||||
|
|
@ -71,7 +71,7 @@ public class ControllerInstrumentationTest {
|
|||
ConstructorInterceptPoint cip = cips[0];
|
||||
Assert.assertNotNull(cip);
|
||||
|
||||
Assert.assertEquals(cip.getConstructorInterceptor(), "ControllerConstructorInterceptor");
|
||||
Assert.assertEquals(cip.getConstructorInterceptor(), "org.apache.skywalking.apm.plugin.spring.mvc.v4.ControllerConstructorInterceptor");
|
||||
Assert.assertTrue(cip.getConstructorMatcher().equals(ElementMatchers.any()));
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -51,8 +51,8 @@ public class RestControllerInstrumentationTest {
|
|||
public void testGetInstanceMethodsInterceptPoints() throws Throwable {
|
||||
InstanceMethodsInterceptPoint[] methodPoints = restControllerInstrumentation.getInstanceMethodsInterceptPoints();
|
||||
assertThat(methodPoints.length, is(2));
|
||||
assertThat(methodPoints[0].getMethodsInterceptor(), is("RequestMappingMethodInterceptor"));
|
||||
assertThat(methodPoints[1].getMethodsInterceptor(), is("RestMappingMethodInterceptor"));
|
||||
assertThat(methodPoints[0].getMethodsInterceptor(), is("org.apache.skywalking.apm.plugin.spring.mvc.commons.interceptor.RequestMappingMethodInterceptor"));
|
||||
assertThat(methodPoints[1].getMethodsInterceptor(), is("org.apache.skywalking.apm.plugin.spring.mvc.commons.interceptor.RestMappingMethodInterceptor"));
|
||||
|
||||
Assert.assertFalse(methodPoints[0].isOverrideArgs());
|
||||
Assert.assertFalse(methodPoints[1].isOverrideArgs());
|
||||
|
|
|
|||
|
|
@ -25,11 +25,11 @@ package org.apache.skywalking.apm.plugin.spring.mvc.commons;
|
|||
* @author zhangxin
|
||||
*/
|
||||
public class Constants {
|
||||
public static final String GET_BEAN_INTERCEPTOR = "GetBeanInterceptor";
|
||||
public static final String GET_BEAN_INTERCEPTOR = "org.apache.skywalking.apm.plugin.spring.mvc.commons.interceptor.GetBeanInterceptor";
|
||||
|
||||
public static final String INVOKE_FOR_REQUEST_INTERCEPTOR = "InvokeForRequestInterceptor";
|
||||
public static final String INVOKE_FOR_REQUEST_INTERCEPTOR = "org.apache.skywalking.apm.plugin.spring.mvc.commons.interceptor.InvokeForRequestInterceptor";
|
||||
|
||||
public static final String REQUEST_MAPPING_METHOD_INTERCEPTOR = "RequestMappingMethodInterceptor";
|
||||
public static final String REQUEST_MAPPING_METHOD_INTERCEPTOR = "org.apache.skywalking.apm.plugin.spring.mvc.commons.interceptor.RequestMappingMethodInterceptor";
|
||||
|
||||
public static final String REST_MAPPING_METHOD_INTERCEPTOR = "RestMappingMethodInterceptor";
|
||||
public static final String REST_MAPPING_METHOD_INTERCEPTOR = "org.apache.skywalking.apm.plugin.spring.mvc.commons.interceptor.RestMappingMethodInterceptor";
|
||||
}
|
||||
|
|
|
|||
|
|
@ -46,9 +46,9 @@ import static net.bytebuddy.matcher.ElementMatchers.named;
|
|||
public class ResponseExtractorFutureInstrumentation extends ClassInstanceMethodsEnhancePluginDefine {
|
||||
|
||||
private static final String ADD_CALLBACK_METHOD_NAME = "addCallback";
|
||||
private static final String ADD_CALLBACK_INTERCEPTOR = "ResponseCallBackInterceptor";
|
||||
private static final String ADD_CALLBACK_INTERCEPTOR = "org.apache.skywalking.apm.plugin.spring.resttemplate.async.ResponseCallBackInterceptor";
|
||||
private static final String ENHANCE_CLASS = "org.springframework.web.client.AsyncRestTemplate$ResponseExtractorFuture";
|
||||
private static final String GET_METHOD_INTERCEPTOR = "FutureGetInterceptor";
|
||||
private static final String GET_METHOD_INTERCEPTOR = "org.apache.skywalking.apm.plugin.spring.resttemplate.async.FutureGetInterceptor";
|
||||
private static final String GET_METHOD_NAME = "get";
|
||||
|
||||
@Override
|
||||
|
|
|
|||
|
|
@ -46,9 +46,9 @@ public class RestTemplateInstrumentation extends ClassInstanceMethodsEnhancePlug
|
|||
|
||||
private static final String ENHANCE_CLASS = "org.springframework.web.client.AsyncRestTemplate";
|
||||
private static final String DO_EXECUTE_METHOD_NAME = "doExecute";
|
||||
private static final String DO_EXECUTE_INTERCEPTOR = "RestExecuteInterceptor";
|
||||
private static final String DO_EXECUTE_INTERCEPTOR = "org.apache.skywalking.apm.plugin.spring.resttemplate.async.RestExecuteInterceptor";
|
||||
private static final String CREATE_REQUEST_METHOD_NAME = "createAsyncRequest";
|
||||
private static final String CREATE_REQUEST_INTERCEPTOR = "RestRequestInterceptor";
|
||||
private static final String CREATE_REQUEST_INTERCEPTOR = "org.apache.skywalking.apm.plugin.spring.resttemplate.async.RestRequestInterceptor";
|
||||
|
||||
@Override
|
||||
protected ConstructorInterceptPoint[] getConstructorsInterceptPoints() {
|
||||
|
|
|
|||
|
|
@ -45,11 +45,11 @@ public class RestTemplateInstrumentation extends ClassInstanceMethodsEnhancePlug
|
|||
|
||||
private static final String ENHANCE_CLASS = "org.springframework.web.client.RestTemplate";
|
||||
private static final String DO_EXECUTE_METHOD_NAME = "doExecute";
|
||||
private static final String DO_EXECUTE_INTERCEPTOR = "RestExecuteInterceptor";
|
||||
private static final String DO_EXECUTE_INTERCEPTOR = "org.apache.skywalking.apm.plugin.spring.resttemplate.sync.RestExecuteInterceptor";
|
||||
private static final String HANDLE_REQUEST_METHOD_NAME = "handleResponse";
|
||||
private static final String HAND_REQUEST_INTERCEPTOR = "RestResponseInterceptor";
|
||||
private static final String HAND_REQUEST_INTERCEPTOR = "org.apache.skywalking.apm.plugin.spring.resttemplate.sync.RestResponseInterceptor";
|
||||
private static final String CREATE_REQUEST_METHOD_NAME = "createRequest";
|
||||
private static final String CREATE_REQUEST_INTERCEPTOR = "RestRequestInterceptor";
|
||||
private static final String CREATE_REQUEST_INTERCEPTOR = "org.apache.skywalking.apm.plugin.spring.resttemplate.sync.RestRequestInterceptor";
|
||||
|
||||
@Override
|
||||
protected ConstructorInterceptPoint[] getConstructorsInterceptPoints() {
|
||||
|
|
|
|||
|
|
@ -45,7 +45,7 @@ public class NetflixFeignInstrumentation extends ClassInstanceMethodsEnhancePlug
|
|||
/**
|
||||
* Intercept class.
|
||||
*/
|
||||
private static final String INTERCEPT_CLASS = "DefaultHttpClientInterceptor";
|
||||
private static final String INTERCEPT_CLASS = "org.apache.skywalking.apm.plugin.spring.cloud.netflix.feign.v11.DefaultHttpClientInterceptor";
|
||||
|
||||
@Override protected ClassMatch enhanceClass() {
|
||||
return byName(ENHANCE_CLASS);
|
||||
|
|
|
|||
|
|
@ -42,8 +42,8 @@ import static net.bytebuddy.matcher.ElementMatchers.takesArgument;
|
|||
public class MemcachedInstrumentation extends ClassInstanceMethodsEnhancePluginDefine {
|
||||
|
||||
private static final String ENHANCE_CLASS = "net.spy.memcached.MemcachedClient";
|
||||
private static final String CONSTRUCTOR_WITH_INETSOCKETADDRESS_LIST_ARG_INTERCEPT_CLASS = "MemcachedConstructorWithInetSocketAddressListArgInterceptor";
|
||||
private static final String METHOD_INTERCEPT_CLASS = "MemcachedMethodInterceptor";
|
||||
private static final String CONSTRUCTOR_WITH_INETSOCKETADDRESS_LIST_ARG_INTERCEPT_CLASS = "org.apache.skywalking.apm.plugin.spymemcached.MemcachedConstructorWithInetSocketAddressListArgInterceptor";
|
||||
private static final String METHOD_INTERCEPT_CLASS = "org.apache.skywalking.apm.plugin.spymemcached.MemcachedMethodInterceptor";
|
||||
|
||||
@Override
|
||||
public ClassMatch enhanceClass() {
|
||||
|
|
|
|||
|
|
@ -40,7 +40,7 @@ public class Struts2Instrumentation extends ClassInstanceMethodsEnhancePluginDef
|
|||
|
||||
private static final String ENHANCE_CLASS = "com.opensymphony.xwork2.DefaultActionInvocation";
|
||||
private static final String ENHANCE_METHOD = "invokeAction";
|
||||
private static final String INTERCEPT_CLASS = "Struts2Interceptor";
|
||||
private static final String INTERCEPT_CLASS = "org.apache.skywalking.apm.plugin.struts2.Struts2Interceptor";
|
||||
|
||||
@Override protected ConstructorInterceptPoint[] getConstructorsInterceptPoints() {
|
||||
return new ConstructorInterceptPoint[0];
|
||||
|
|
|
|||
|
|
@ -47,12 +47,12 @@ public class TomcatInstrumentation extends ClassInstanceMethodsEnhancePluginDefi
|
|||
/**
|
||||
* The intercept class for "invoke" method in the class "org.apache.catalina.core.StandardWrapperValve"
|
||||
*/
|
||||
private static final String INVOKE_INTERCEPT_CLASS = "TomcatInvokeInterceptor";
|
||||
private static final String INVOKE_INTERCEPT_CLASS = "org.apache.skywalking.apm.plugin.tomcat78x.TomcatInvokeInterceptor";
|
||||
|
||||
/**
|
||||
* The intercept class for "exception" method in the class "org.apache.catalina.core.StandardWrapperValve"
|
||||
*/
|
||||
private static final String EXCEPTION_INTERCEPT_CLASS = "TomcatExceptionInterceptor";
|
||||
private static final String EXCEPTION_INTERCEPT_CLASS = "org.apache.skywalking.apm.plugin.tomcat78x.TomcatExceptionInterceptor";
|
||||
|
||||
@Override
|
||||
protected ClassMatch enhanceClass() {
|
||||
|
|
|
|||
|
|
@ -1,2 +1,2 @@
|
|||
toolkit-logback=org.apache.skywalking.apm.toolkit.activation.log.logback.v1.x.mdc.LogbackPatternConverterActivation
|
||||
toolkit-logback=org.apache.skywalking.apm.toolkit.activation.log.logback.v1.x.LogbackPatternConverterActivation
|
||||
toolkit-logback=org.apache.skywalking.apm.toolkit.activation.log.logback.v1.x.mdc.MDCConverterActivation
|
||||
|
|
|
|||
|
|
@ -42,9 +42,9 @@ import static org.apache.skywalking.apm.agent.core.plugin.match.NameMatch.byName
|
|||
*/
|
||||
public class SkywalkingContinuationActivation extends ClassInstanceMethodsEnhancePluginDefine {
|
||||
|
||||
private static final String ENHANCE_CLASS = "SkywalkingContinuation";
|
||||
private static final String CONSTRUCTOR_INTERCEPTOR = "ConstructorInterceptor";
|
||||
private static final String ACTIVATE_METHOD_INTERCEPTOR = "ActivateInterceptor";
|
||||
private static final String ENHANCE_CLASS = "org.skywalking.apm.toolkit.opentracing.SkywalkingContinuation";
|
||||
private static final String CONSTRUCTOR_INTERCEPTOR = "org.apache.skywalking.apm.toolkit.activation.opentracing.continuation.ConstructorInterceptor";
|
||||
private static final String ACTIVATE_METHOD_INTERCEPTOR = "org.apache.skywalking.apm.toolkit.activation.opentracing.continuation.ActivateInterceptor";
|
||||
|
||||
@Override
|
||||
protected ClassMatch enhanceClass() {
|
||||
|
|
|
|||
|
|
@ -56,18 +56,18 @@ import static org.apache.skywalking.apm.agent.core.plugin.bytebuddy.ArgumentType
|
|||
**/
|
||||
public class SkywalkingSpanActivation extends ClassInstanceMethodsEnhancePluginDefine {
|
||||
|
||||
private static final String ENHANCE_CLASS = "SkywalkingSpan";
|
||||
private static final String ENHANCE_CLASS = "org.apache.skywalking.apm.toolkit.opentracing.SkywalkingSpan";
|
||||
|
||||
private static final String SPAN_BUILDER_CLASS_NAME = "SkywalkingSpanBuilder";
|
||||
private static final String CONSTRUCTOR_WITH_SPAN_BUILDER_INTERCEPTOR = "ConstructorWithSpanBuilderInterceptor";
|
||||
private static final String SPAN_BUILDER_CLASS_NAME = "org.skywalking.apm.toolkit.opentracing.SkywalkingSpanBuilder";
|
||||
private static final String CONSTRUCTOR_WITH_SPAN_BUILDER_INTERCEPTOR = "org.apache.skywalking.apm.toolkit.activation.opentracing.span.ConstructorWithSpanBuilderInterceptor";
|
||||
|
||||
private static final String SKYWALKING_TRACER_CLASS_NAME = "SkywalkingTracer";
|
||||
private static final String CONSTRUCTOR_WITH_TRACER_INTERCEPTOR = "ConstructorWithTracerInterceptor";
|
||||
private static final String CONSTRUCTOR_WITH_TRACER_INTERCEPTOR = "org.apache.skywalking.apm.toolkit.activation.opentracing.span.ConstructorWithTracerInterceptor";
|
||||
|
||||
private static final String FINISH_METHOD_INTERCEPTOR = "SpanFinishInterceptor";
|
||||
private static final String LOG_INTERCEPTOR = "SpanLogInterceptor";
|
||||
private static final String SET_OPERATION_NAME_INTERCEPTOR = "SpanSetOperationNameInterceptor";
|
||||
private static final String SET_TAG_INTERCEPTOR = "SpanSetTagInterceptor";
|
||||
private static final String FINISH_METHOD_INTERCEPTOR = "org.apache.skywalking.apm.toolkit.activation.opentracing.span.SpanFinishInterceptor";
|
||||
private static final String LOG_INTERCEPTOR = "org.apache.skywalking.apm.toolkit.activation.opentracing.span.SpanLogInterceptor";
|
||||
private static final String SET_OPERATION_NAME_INTERCEPTOR = "org.apache.skywalking.apm.toolkit.activation.opentracing.span.SpanSetOperationNameInterceptor";
|
||||
private static final String SET_TAG_INTERCEPTOR = "org.apache.skywalking.apm.toolkit.activation.opentracing.span.SpanSetTagInterceptor";
|
||||
|
||||
@Override
|
||||
protected ClassMatch enhanceClass() {
|
||||
|
|
|
|||
|
|
@ -41,9 +41,9 @@ import static net.bytebuddy.matcher.ElementMatchers.named;
|
|||
**/
|
||||
public class SkywalkingTracerActivation extends ClassInstanceMethodsEnhancePluginDefine {
|
||||
|
||||
private static final String ENHANCE_CLASS = "SkywalkingTracer";
|
||||
private static final String INJECT_INTERCEPTOR = "SkywalkingTracerInjectInterceptor";
|
||||
private static final String EXTRACT_INTERCEPTOR = "SkywalkingTracerExtractInterceptor";
|
||||
private static final String ENHANCE_CLASS = "org.apache.skywalking.apm.toolkit.opentracing.SkywalkingTracer";
|
||||
private static final String INJECT_INTERCEPTOR = "org.apache.skywalking.apm.toolkit.activation.opentracing.tracer.SkywalkingTracerInjectInterceptor";
|
||||
private static final String EXTRACT_INTERCEPTOR = "org.apache.skywalking.apm.toolkit.activation.opentracing.tracer.SkywalkingTracerExtractInterceptor";
|
||||
|
||||
@Override protected ClassMatch enhanceClass() {
|
||||
return NameMatch.byName(ENHANCE_CLASS);
|
||||
|
|
|
|||
|
|
@ -1,3 +1,3 @@
|
|||
toolkit-opentracing=org.apache.skywalking.apm.toolkit.activation.opentracing.tracer.SkywalkingTracerActivation
|
||||
toolkit-opentracing=org.apache.skywalking.apm.toolkit.activation.opentracing.tracer.SkywalkingSpanActivation
|
||||
toolkit-opentracing=org.apache.skywalking.apm.toolkit.activation.opentracing.tracer.SkywalkingContinuationActivation
|
||||
toolkit-opentracing=org.apache.skywalking.apm.toolkit.activation.opentracing.span.SkywalkingSpanActivation
|
||||
toolkit-opentracing=org.apache.skywalking.apm.toolkit.activation.opentracing.continuation.SkywalkingContinuationActivation
|
||||
|
|
|
|||
Loading…
Reference in New Issue