Class DbClientTracing

  • All Implemented Interfaces:
    DbInterceptor

    public class DbClientTracing
    extends Object
    implements DbInterceptor
    Tracing interceptor. This interceptor is added through Java Service loader.
    • Constructor Detail

      • DbClientTracing

        public DbClientTracing()
    • Method Detail

      • create

        public static DbClientTracing create​(Config config)
        Create a new tracing interceptor based on the configuration.
        Parameters:
        config - configuration node for this interceptor (currently ignored)
        Returns:
        a new tracing interceptor
      • create

        public static DbClientTracing create()
        Create a new interceptor to trace requests.
        Returns:
        a new tracing interceptor
      • statement

        public CompletableFuture<DbInterceptorContext> statement​(DbInterceptorContext interceptorContext)
        Description copied from interface: DbInterceptor
        Statement execution to be intercepted. This method is called before the statement execution starts.
        Specified by:
        statement in interface DbInterceptor
        Parameters:
        interceptorContext - Context to access data needed to process an interceptor
        Returns:
        completion stage that completes when this interceptor is finished