'Persisting Zipkin log data to MySQL DB through Spring Cloud Sleuth and zipkin-autoconfigure-storage-mysql

I am trying to store traces of microservices in MySQL DB using zipkin server.

Problem is traces are not getting store in DB, where as tables(zipkin_annotation,zipkin_spans,zipkin_dependencies) has been created in database name (zipkin) Please help me understand what I am missing

I am using following dependency versions :

  1. spring-boot-starter-parent version : 1.5.3.RELEASE
  2. spring-cloud.version version : Edgware.SR3
  3. java -version : 1.8
  4. zipkin-server,zipkin-autoconfigure-ui,zipkin-autoconfigure-storage-mysql, : 1.17.1

Here is my code:

Application.properties: enter image description here

Pom.xml enter image description here

enter image description here

enter image description here

SpringZipkinApplication.java enter image description here

Microservice1.java enter image description here

Running Zipkin Server using following cmd : enter image description here

Running service in Browser :

enter image description here

Zipkin server UI : enter image description here

Spring Boot Logs : enter image description here

Mysql Database with null ids : enter image description here



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source