类 TracingExceptionInterceptor

java.lang.Object
org.coodex.concrete.apm.mysql8.TracingExceptionInterceptor
所有已实现的接口:
com.mysql.cj.exceptions.ExceptionInterceptor

public class TracingExceptionInterceptor extends Object implements com.mysql.cj.exceptions.ExceptionInterceptor
A MySQL exception interceptor that will annotate spans with SQL error codes.

To use it, both TracingQueryInterceptor and TracingExceptionInterceptor must be added by appending ?queryInterceptors=brave.mysql8.TracingQueryInterceptor&exceptionInterceptors=brave.mysql8.TracingExceptionInterceptor. ?queryInterceptors=org.coodex.concrete.apm.mysql8.TracingQueryInterceptor&exceptionInterceptors=org.coodex.concrete.apm.mysql8.TracingExceptionInterceptor

  • 构造器详细资料

    • TracingExceptionInterceptor

      public TracingExceptionInterceptor()
  • 方法详细资料

    • init

      public com.mysql.cj.exceptions.ExceptionInterceptor init(Properties properties, com.mysql.cj.log.Log log)
      指定者:
      init 在接口中 com.mysql.cj.exceptions.ExceptionInterceptor
    • destroy

      public void destroy()
      指定者:
      destroy 在接口中 com.mysql.cj.exceptions.ExceptionInterceptor
    • interceptException

      public Exception interceptException(Exception e)
      指定者:
      interceptException 在接口中 com.mysql.cj.exceptions.ExceptionInterceptor