opentracing / opentracing-java

OpenTracing API for Java. 🛑 This library is DEPRECATED! https://github.com/opentracing/specification/issues/163
http://opentracing.io
Apache License 2.0
1.68k stars 344 forks source link

Service name is not displaying in Zipkin dashboard #299

Open kavirajkh opened 6 years ago

kavirajkh commented 6 years ago

Hi Team,

I am using Zipkin implementation and app is working with below code and old builds but not with the latest build. I would like to use the latest builds with spring-boot-starter-webflux. Please help.

     public io.opentracing.Tracer zipkinTracer() {
    OkHttpSender okHttpSender = OkHttpSender.builder()
            .encoding(Encoding.JSON)
            .endpoint("http://localhost:9411/api/v1/spans")
            .build();
    AsyncReporter<Span> reporter = AsyncReporter.builder(okHttpSender).build();
    Tracing braveTracer = Tracing.newBuilder()
            .localServiceName("voyager")
            .reporter(reporter)
            .traceId128Bit(true)
            .sampler(Sampler.ALWAYS_SAMPLE)
            .build();
    return BraveTracer.create(braveTracer);
}
opentracing-spring-web-autoconfigure 0.0.4 brave-opentracing 0.20.0 zipkin-sender-okhttp3 1.1.2 okhttp 2.7.5

But not working with

     public io.opentracing.Tracer zipkinTracer() {
    OkHttpSender okHttpSender = OkHttpSender.newBuilder()
            .encoding((Encoding.JSON))
            .endpoint("http://localhost:9411/api/v1/spans")
            .build();
    AsyncReporter<Span> reporter = AsyncReporter.create(okHttpSender);

    Tracing braveTracer = Tracing.newBuilder()
            .localServiceName("voyager-preview")
            .spanReporter(reporter)
            .traceId128Bit(true)
            .sampler(Sampler.ALWAYS_SAMPLE)
            .build();
    return BraveTracer.create(braveTracer);
}
opentracing-spring-web-starter 0.3.3 zipkin 2.11.1 brave-opentracing 0.31.3 zipkin-sender-okhttp3 2.7.7

demo-tracing.zip