Search in sources :

Example 1 with TracedExecutorService

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

Example 2 with TracedExecutorService

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