use of io.smallrye.opentracing.SmallRyeClientTracingFeature 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