- java.lang.Object
-
- io.helidon.dbclient.tracing.DbClientTracing
-
- All Implemented Interfaces:
DbInterceptor
public class DbClientTracing extends Object implements DbInterceptor
Tracing interceptor. This interceptor is added through Java Service loader.
-
-
Constructor Summary
Constructors Constructor Description DbClientTracing()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static DbClientTracingcreate()Create a new interceptor to trace requests.static DbClientTracingcreate(Config config)Create a new tracing interceptor based on the configuration.CompletableFuture<DbInterceptorContext>statement(DbInterceptorContext interceptorContext)Statement execution to be intercepted.
-
-
-
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:DbInterceptorStatement execution to be intercepted. This method is called before the statement execution starts.- Specified by:
statementin interfaceDbInterceptor- Parameters:
interceptorContext- Context to access data needed to process an interceptor- Returns:
- completion stage that completes when this interceptor is finished
-
-