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| 限定符和类型 | 字段和说明 |
|---|---|
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| 构造器和说明 |
|---|
ConnectionInstrumentation() |
| 限定符和类型 | 方法和说明 |
|---|---|
protected ClassMatch |
enhanceClass() |
protected ConstructorInterceptPoint[] |
getConstructorsInterceptPoints() |
protected InstanceMethodsInterceptPoint[] |
getInstanceMethodsInterceptPoints() |
getStaticMethodsInterceptPointsenhancedefine, witnessClassespublic static final String PG_JDBC42_CONNECTION_ENHANCE_CLASS
public static final String PG_JDBC3_CONNECTION_ENHANCE_CLASS
protected ConstructorInterceptPoint[] getConstructorsInterceptPoints()
protected InstanceMethodsInterceptPoint[] getInstanceMethodsInterceptPoints()
protected ClassMatch enhanceClass()
Copyright © 2018 The Apache Software Foundation. All rights reserved.