public class ClientTracingRegistrar
extends java.lang.Object
ClientBuilder
. It is required to call
configure(ClientBuilder)
or its variants to enable tracing in jakarta.ws.rs.client.Client
, however
implementation might enable tracing globally.
Invoking configure(ClientBuilder)
returns a ClientBuilder
with enabled tracing
integration. Note that following calls to ClientBuilder
which change ExecutorService
might break
tracing integration. If a custom ExecutorService
has to be used use
configure(ClientBuilder, ExecutorService)
.Modifier and Type | Method and Description |
---|---|
static ClientBuilder |
configure(ClientBuilder clientBuilder)
Register tracing components into client builder instance.
|
static ClientBuilder |
configure(ClientBuilder clientBuilder,
java.util.concurrent.ExecutorService executorService)
Register tracing components into client builder instance.
|
public static ClientBuilder configure(ClientBuilder clientBuilder)
clientBuilder
- client builderpublic static ClientBuilder configure(ClientBuilder clientBuilder, java.util.concurrent.ExecutorService executorService)
clientBuilder
- client builderexecutorService
- executorService which will be added to the client. Note that this overrides executor service added
previously to the client.