use of io.jaegertracing.zipkin.ZipkinV2Reporter in project jaeger-client-java by jaegertracing.
the class ZipkinV2ReporterTest method setup.
@Before
public void setup() {
sender = URLConnectionSender.newBuilder().encoding(Encoding.JSON).endpoint(zipkinRule.httpUrl() + "/api/v2/spans").build();
zipkinReporter = zipkin2.reporter.AsyncReporter.builder(sender).messageTimeout(0, TimeUnit.MILLISECONDS).build();
reporter = new ZipkinV2Reporter(zipkinReporter);
tracer = new JaegerTracer.Builder("test-sender").withReporter(reporter).withSampler(new ConstSampler(true)).withMetricsFactory(new InMemoryMetricsFactory()).build();
}
Aggregations