public class ConnectionInstrumentation extends ClassInstanceMethodsEnhancePluginDefine
ConnectionInstrumentation intercept the following methods that the class which extend
PgConnection.
1. Enhance prepareStatement by org.apache.skywalking.apm.plugin.jdbc.define.JDBCPrepareStatementInterceptor
2. Enhance prepareStatement that the seconds argument type is java.lang.String[] by
JDBCPrepareStatementWithStringArrayInterceptor
3. Enhance prepareCall by
org.apache.skywalking.apm.plugin.jdbc.define.JDBCPrepareCallInterceptor
4. Enhance createStatement
by org.apache.skywalking.apm.plugin.jdbc.define.JDBCStatementInterceptor
5. Enhance commit, rollback, close, releaseSavepoint by org.apache.skywalking.apm.plugin.jdbc.define.ConnectionServiceMethodInterceptor| Modifier and Type | Field and Description |
|---|---|
static String |
PG_CONNECTION_ENHANCE_CLASS |
static String |
PG_JDBC3_CONNECTION_ENHANCE_CLASS |
static String |
PG_JDBC4_CONNECTION_ENHANCE_CLASS |
static String |
PG_JDBC42_CONNECTION_ENHANCE_CLASS |
static String |
STRING_ARRAY_ARGUMENT_TYPE |
CONTEXT_ATTR_NAME| Constructor and Description |
|---|
ConnectionInstrumentation() |
| Modifier and Type | Method and Description |
|---|---|
protected ClassMatch |
enhanceClass() |
ConstructorInterceptPoint[] |
getConstructorsInterceptPoints() |
InstanceMethodsInterceptPoint[] |
getInstanceMethodsInterceptPoints() |
getStaticMethodsInterceptPointsenhancedefine, isBootstrapInstrumentation, witnessClassespublic static final String PG_CONNECTION_ENHANCE_CLASS
public static final String STRING_ARRAY_ARGUMENT_TYPE
public static final String PG_JDBC42_CONNECTION_ENHANCE_CLASS
public static final String PG_JDBC3_CONNECTION_ENHANCE_CLASS
public static final String PG_JDBC4_CONNECTION_ENHANCE_CLASS
public ConstructorInterceptPoint[] getConstructorsInterceptPoints()
getConstructorsInterceptPoints in class AbstractClassEnhancePluginDefinepublic InstanceMethodsInterceptPoint[] getInstanceMethodsInterceptPoints()
getInstanceMethodsInterceptPoints in class AbstractClassEnhancePluginDefineprotected ClassMatch enhanceClass()
enhanceClass in class AbstractClassEnhancePluginDefineCopyright © 2019 The Apache Software Foundation. All rights reserved.