类 TracingQueryInterceptor
java.lang.Object
org.coodex.concrete.apm.mysql8.TracingQueryInterceptor
- 所有已实现的接口:
com.mysql.cj.interceptors.QueryInterceptor
public class TracingQueryInterceptor
extends Object
implements com.mysql.cj.interceptors.QueryInterceptor
修改自 https://github.com/openzipkin/brave/blob/master/instrumentation/mysql8/src/main/java/brave/mysql8/TracingQueryInterceptor.java
?queryInterceptors=org.coodex.concrete.apm.mysql8.TracingQueryInterceptor&exceptionInterceptors=org.coodex.concrete.apm.mysql8.TracingExceptionInterceptor-
构造器概要
构造器 -
方法概要
修饰符和类型方法说明voiddestroy()booleancom.mysql.cj.interceptors.QueryInterceptorinit(com.mysql.cj.MysqlConnection mysqlConnection, Properties properties, com.mysql.cj.log.Log log) <T extends com.mysql.cj.protocol.Resultset>
TpostProcess(Supplier<String> sql, com.mysql.cj.Query interceptedQuery, T originalResultSet, com.mysql.cj.protocol.ServerSession serverSession) <T extends com.mysql.cj.protocol.Resultset>
TpreProcess(Supplier<String> sqlSupplier, com.mysql.cj.Query interceptedQuery) 从类继承的方法 java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait从接口继承的方法 com.mysql.cj.interceptors.QueryInterceptor
postProcess, preProcess
-
构造器详细资料
-
TracingQueryInterceptor
public TracingQueryInterceptor()
-
-
方法详细资料
-
preProcess
public <T extends com.mysql.cj.protocol.Resultset> T preProcess(Supplier<String> sqlSupplier, com.mysql.cj.Query interceptedQuery) - 指定者:
preProcess在接口中com.mysql.cj.interceptors.QueryInterceptor
-
postProcess
public <T extends com.mysql.cj.protocol.Resultset> T postProcess(Supplier<String> sql, com.mysql.cj.Query interceptedQuery, T originalResultSet, com.mysql.cj.protocol.ServerSession serverSession) - 指定者:
postProcess在接口中com.mysql.cj.interceptors.QueryInterceptor
-
executeTopLevelOnly
public boolean executeTopLevelOnly()- 指定者:
executeTopLevelOnly在接口中com.mysql.cj.interceptors.QueryInterceptor
-
init
public com.mysql.cj.interceptors.QueryInterceptor init(com.mysql.cj.MysqlConnection mysqlConnection, Properties properties, com.mysql.cj.log.Log log) - 指定者:
init在接口中com.mysql.cj.interceptors.QueryInterceptor
-
destroy
public void destroy()- 指定者:
destroy在接口中com.mysql.cj.interceptors.QueryInterceptor
-