use of io.jaegertracing.Configuration.SenderConfiguration in project cxf by apache.
the class Client method main.
public static void main(final String[] args) throws Exception {
final Tracer tracer = new Configuration("tracer-client").withSampler(new SamplerConfiguration().withType(ConstSampler.TYPE).withParam(1)).withReporter(new ReporterConfiguration().withSender(new SenderConfiguration() {
@Override
public Sender getSender() {
return new Slf4jLogSender();
}
})).getTracer();
final OpenTracingClientProvider provider = new OpenTracingClientProvider(tracer);
final Response response = WebClient.create("http://localhost:9000/catalog", Arrays.asList(provider)).accept(MediaType.APPLICATION_JSON).get();
System.out.println(response.readEntity(String.class));
response.close();
}
use of io.jaegertracing.Configuration.SenderConfiguration in project jaeger-client-java by jaegertracing.
the class ConfigurationTest method testSenderInstanceIsCached.
@Test
public void testSenderInstanceIsCached() {
SenderConfiguration senderConfiguration = SenderConfiguration.fromEnv();
assertEquals(senderConfiguration.getSender(), senderConfiguration.getSender());
}
Aggregations