@Test public void configOverridesLocalServiceName_client_combines() throws Exception { tracer = tracerWithLocalServiceName("favstar"); tracer.record(new Record(root, fromMilliseconds(TODAY), new Annotation.LocalAddr( new InetSocketAddress("1.2.3.3", 443)), empty())); tracer.record(new Record(root, fromMilliseconds(TODAY), new Annotation.ServerAddr( new InetSocketAddress("1.2.3.4", 80)), empty())); recordClientSpan(root); Span span = spansSent.take().get(0); assertThat(span.localEndpoint()) .isEqualTo(Endpoint.newBuilder().serviceName("favstar").ip("1.2.3.3").port(443).build()); assertThat(span.remoteEndpoint()) .isEqualTo(Endpoint.newBuilder().serviceName("web").ip("1.2.3.4").port(80).build()); }
public static Builder newBuilder(Reporter<Span> spanReporter) { return new Builder(spanReporter); }
ZipkinTracer extends SamplingTracer implements Closable { public static Builder newBuilder(Reporter<Span> spanReporter) { return new Builder(spanReporter); } }
ZipkinTracer extends SamplingTracer implements Closable { public static Builder newBuilder(Reporter<Span> spanReporter) { return new Builder(spanReporter); } protected  ZipkinTracer(Sender sender, Config config, StatsReceiver stats);   ZipkinTracer(Reporter<Span> reporter, Config config, StatsReceiver stats); private  ZipkinTracer(Reporter<Span> reporter, RawZipkinTracer underlying, Config config); }
ZipkinTracer extends SamplingTracer implements Closable { public static Builder newBuilder(Reporter<Span> spanReporter) { return new Builder(spanReporter); } protected  ZipkinTracer(Sender sender, Config config, StatsReceiver stats);   ZipkinTracer(Reporter<Span> reporter, Config config, StatsReceiver stats); private  ZipkinTracer(Reporter<Span> reporter, RawZipkinTracer underlying, Config config); static Builder newBuilder(Reporter<Span> spanReporter); @Override Future<BoxedUnit> close(); @Override Future<BoxedUnit> close(Time deadline); @Override Future<BoxedUnit> close(Duration after); }
ZipkinTracer extends SamplingTracer implements Closable { public static Builder newBuilder(Reporter<Span> spanReporter) { return new Builder(spanReporter); } protected  ZipkinTracer(Sender sender, Config config, StatsReceiver stats);   ZipkinTracer(Reporter<Span> reporter, Config config, StatsReceiver stats); private  ZipkinTracer(Reporter<Span> reporter, RawZipkinTracer underlying, Config config); static Builder newBuilder(Reporter<Span> spanReporter); @Override Future<BoxedUnit> close(); @Override Future<BoxedUnit> close(Time deadline); @Override Future<BoxedUnit> close(Duration after);  }