- java.lang.Object
-
- io.helidon.dbclient.common.DbClientServiceBase
-
- io.helidon.dbclient.tracing.DbClientTracing
-
- All Implemented Interfaces:
DbClientService
public class DbClientTracing extends DbClientServiceBase
Tracing interceptor. This interceptor is added through Java Service loader.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
DbClientTracing.Builder
Fluent API builder forDbClientTracing
.-
Nested classes/interfaces inherited from class io.helidon.dbclient.common.DbClientServiceBase
DbClientServiceBase.DbClientServiceBuilderBase<B extends DbClientServiceBase.DbClientServiceBuilderBase<B>>
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected Single<DbClientServiceContext>
apply(DbClientServiceContext serviceContext)
This method is only invoked if the predicate for this service was passed.static DbClientTracing.Builder
builder()
Create a new builder.static DbClientTracing
create()
Create a new interceptor to trace requests.static DbClientTracing
create(Config config)
Create a new tracing interceptor based on the configuration.-
Methods inherited from class io.helidon.dbclient.common.DbClientServiceBase
statement
-
-
-
-
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- Returns:
- a new tracing interceptor
-
create
public static DbClientTracing create()
Create a new interceptor to trace requests.- Returns:
- a new tracing interceptor
-
builder
public static DbClientTracing.Builder builder()
Create a new builder.- Returns:
- a new builder instance
-
apply
protected Single<DbClientServiceContext> apply(DbClientServiceContext serviceContext)
Description copied from class:DbClientServiceBase
This method is only invoked if the predicate for this service was passed.- Specified by:
apply
in classDbClientServiceBase
- Parameters:
serviceContext
- db client invocation context- Returns:
- single with the new context (or the same one if not modified)
- See Also:
DbClientServiceBase.statement(io.helidon.dbclient.DbClientServiceContext)
-
-