Zipkin

日志节点说明:

  Annotation:用于记录发生的事件;
  BinaryAnnotation:Binary其实是二元的寓意;key-value格式,在zipkin的log日志中代表附加信息。
  Endpoint:代表当前主机信息,在Annotation里面的endpoint要注意,跨服务调用应该是源IP和本机IP;但是BinaryAnnotation里面的endpoint只是本机的IP

zipkin在java版client是brave
https://github.com/openzipkin/brave
brave的demo:
https://github.com/openzipkin/brave-webmvc-example

zipkin指定mysql

java -server -jar zipkin-server-2.6.1-exec.jar --zipkin.storage.type=mysql --zipkin.storage.mysql.host=10.4.127.51 --zipkin.storage.mysql.port=3306 --zipkin.storage.mysql.username=root --zipkin.storage.mysql.password=root --zipkin.storage.mysql.db=zipkin
原文地址:https://www.cnblogs.com/xiashiwendao/p/8688654.html