Zipkin Client can not connect to the Zipkin Server

1,140 views
Skip to first unread message

bamb...@gmail.com

unread,
Jun 26, 2018, 6:15:12 AM6/26/18
to zipkin-user

I have started zipkin-server and I can see the dashboard. I have tested it with simple projects and it is okay. But when I test it with my app I have a problem. I have Spring Boot project that produce to kafka if the property for kafka is set on true in application.properties. In my case it is always set to false and it is working correctly. But when I added zipkin dependency it start to send to kafka. And also I can not see my client app in the zipkin dashboard. I am using Spring Boot 1.5.6.RELEASE version

This are my dependencies:

    <dependency>
        <groupId>org.springframework.cloud</groupId>
        <artifactId>spring-cloud-starter-sleuth</artifactId>
        <version>1.3.0.RELEASE</version>
    </dependency>
    <dependency>
        <groupId>org.springframework.cloud</groupId>
        <artifactId>spring-cloud-starter-zipkin</artifactId>
        <version>1.3.0.RELEASE</version>
    </dependency>

And this are my properties for zipkin and sleuth.

#Sleuth
spring.sleuth.scheduled.enabled=false
spring.sleuth.async.enabled=false
spring.sleuth.annotation.enabled=false
spring.sleuth.enabled = true 
spring.sleuth.sampler.probability=1.0
#Zipkin
spring.zipkin.baseUrl = http://localhost:9411 
logging.pattern.level=%d{ABSOLUTE} [%X{X-B3-TraceId}/%X{X-B3-SpanId}] %-5p [%t] %C{2} - %m%n

By adding the first 3 properties the application is not sending requests on the beggining, but it start after I send a request to my application.

Adrian Cole

unread,
Jun 26, 2018, 6:28:51 AM6/26/18
to zipki...@googlegroups.com
try adding the below to force your app to use web (http) to send
traces to kafka. https://gitter.im/spring-cloud/spring-cloud-sleuth
for more!

spring.zipkin.sender.type=web
> --
>
> ---
> You received this message because you are subscribed to the Google Groups
> "zipkin-user" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to zipkin-user...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.

bamb...@gmail.com

unread,
Jun 26, 2018, 6:33:56 AM6/26/18
to zipkin-user
As I get this is used to send the tracing data to kafka and after that to the server. But I am using kafka for different purposes (or count that kafka is not implemented in the project, because is set to false).

Adrian Cole

unread,
Jun 26, 2018, 6:40:31 AM6/26/18
to zipki...@googlegroups.com
sorry I wrote incorrectly. the property I mentioned when set to web uses http to get to zipkin. This overrides the v1.3 behavior which assumed you want kafka.

note that slueth 2.0 you dont need to set this property as the code no longer assumes you want to use kafka for reasons such as the trouble you are having.

bamb...@gmail.com

unread,
Jun 26, 2018, 6:46:17 AM6/26/18
to zipkin-user
Okay, now I am not seeing the error with automatically send on kafka, but still I can not see my app in the server...

Adrian Cole

unread,
Jun 26, 2018, 6:55:28 AM6/26/18
to zipki...@googlegroups.com
are you able to use gitter? it is a chat so easier than reply back a
lot on email https://gitter.im/spring-cloud/spring-cloud-sleuth

if not, next step is to see if you are actually sending any data. the
:9411/metrics endpoint on your zipkin host will have that.

if you see no collector metrics, your app isn't sending any data. Note
that default is localhost, you might be missing a property of the
zipkin server
http://cloud.spring.io/spring-cloud-sleuth/single/spring-cloud-sleuth.html#_sending_spans_to_zipkin

(regardless please use gitter if you can)

On Tue, Jun 26, 2018 at 6:46 PM, <bamb...@gmail.com> wrote:
> Okay, now I am not seeing the error with automatically send on kafka, but
> still I can not see my app in the server...
>

bamb...@gmail.com

unread,
Jun 26, 2018, 7:04:13 AM6/26/18
to zipkin-user
I replied on gitter!
Reply all
Reply to author
Forward
0 new messages