Search in sources :

Example 1 with SmallRyeClientTracingFeature

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));
}
Also used : ResteasyClientBuilder(org.jboss.resteasy.client.jaxrs.ResteasyClientBuilder) SmallRyeClientTracingFeature(io.smallrye.opentracing.SmallRyeClientTracingFeature) Tracer(io.opentracing.Tracer) TracedExecutorService(io.opentracing.contrib.concurrent.TracedExecutorService)

Aggregations

Tracer (io.opentracing.Tracer)1 TracedExecutorService (io.opentracing.contrib.concurrent.TracedExecutorService)1 SmallRyeClientTracingFeature (io.smallrye.opentracing.SmallRyeClientTracingFeature)1 ResteasyClientBuilder (org.jboss.resteasy.client.jaxrs.ResteasyClientBuilder)1