use of io.opentracing.contrib.concurrent.TracedExecutorService in project wildfly by wildfly.
the class ResteasyClientTracingRegistrarProvider method configure.
@Override
public ClientBuilder configure(ClientBuilder clientBuilder, ExecutorService executorService) {
ResteasyClientBuilder resteasyClientBuilder = (ResteasyClientBuilder) clientBuilder;
Tracer tracer = CDI.current().select(Tracer.class).get();
return resteasyClientBuilder.executorService(new TracedExecutorService(executorService, tracer)).register(new SmallRyeClientTracingFeature(tracer));
}
use of io.opentracing.contrib.concurrent.TracedExecutorService in project wildfly by wildfly.
the class WildFlyClientTracingRegistrarProvider method configure.
@Override
public ClientBuilder configure(ClientBuilder clientBuilder, ExecutorService executorService) {
Tracer tracer = CDI.current().select(Tracer.class).get();
ResteasyClientBuilder resteasyClientBuilder = (ResteasyClientBuilder) clientBuilder;
return resteasyClientBuilder.executorService(new TracedExecutorService(executorService, tracer)).register(new SmallRyeClientTracingFeature(tracer));
}
Aggregations