@@ -27,18 +27,15 @@ public class ProteusZipkinHttpBridge implements ProteusTracingService {
2727 private final int port ;
2828 private final String zipkinSpansUrl ;
2929 private HttpClient httpClient ;
30- private TracesStreamer tracesStreamer ;
3130
32- public ProteusZipkinHttpBridge (
33- String host , int port , String zipkinSpansUrl , String zipkinTracesUrl ) {
31+ public ProteusZipkinHttpBridge (String host , int port , String zipkinSpansUrl ) {
3432 this .host = host ;
3533 this .port = port ;
3634 this .zipkinSpansUrl = zipkinSpansUrl ;
37- this .tracesStreamer = new TracesStreamer (zipkinTracesUrl , Mono .fromCallable (this ::getClient ));
3835 }
3936
4037 public ProteusZipkinHttpBridge (String host , int port ) {
41- this (host , port , DEFAULT_ZIPKIN_SPANS_URL , DEFAULT_ZIPKIN_TRACES_URL );
38+ this (host , port , DEFAULT_ZIPKIN_SPANS_URL );
4239 }
4340
4441 public static void main (String ... args ) {
@@ -51,8 +48,6 @@ public static void main(String... args) {
5148 int zipkinPort = Integer .getInteger ("netifi.proteus.zipkinPort" , 9411 );
5249 String zipkinSpansUrl =
5350 System .getProperty ("netifi.proteus.zipkinSpansUrl" , DEFAULT_ZIPKIN_SPANS_URL );
54- String zipkinTracesUrl =
55- System .getProperty ("netifi.proteus.zipkinTracesUrl" , DEFAULT_ZIPKIN_TRACES_URL );
5651 long accessKey = Long .getLong ("netifi.proteus.accessKey" , 3855261330795754807L );
5752 String accessToken =
5853 System .getProperty ("netifi.authentication.accessToken" , "kTBDVtfRBO4tHOnZzSyY5ym2kfY" );
@@ -63,7 +58,6 @@ public static void main(String... args) {
6358 logger .info ("zipkin host - {}" , zipkinHost );
6459 logger .info ("zipkin port - {}" , zipkinPort );
6560 logger .info ("zipkin spans url - {}" , zipkinSpansUrl );
66- logger .info ("zipkin traces url - {}" , zipkinTracesUrl );
6761 logger .info ("access key - {}" , accessKey );
6862
6963 Proteus proteus =
@@ -78,7 +72,7 @@ public static void main(String... args) {
7872
7973 proteus .addService (
8074 new ProteusTracingServiceServer (
81- new ProteusZipkinHttpBridge (zipkinHost , zipkinPort , zipkinSpansUrl , zipkinTracesUrl ),
75+ new ProteusZipkinHttpBridge (zipkinHost , zipkinPort , zipkinSpansUrl ),
8276 Optional .empty (),
8377 Optional .empty ()));
8478
@@ -148,9 +142,4 @@ public Mono<Ack> streamSpans(Publisher<Span> messages, ByteBuf metadata) {
148142 "error sending data to tracing data to url " + zipkinSpansUrl , throwable ))
149143 .then (Mono .never ());
150144 }
151-
152- @ Override
153- public Flux <Trace > streamTraces (TracesRequest message , ByteBuf metadata ) {
154- return tracesStreamer .streamTraces (message .getLookbackSeconds ());
155- }
156145}
0 commit comments