博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
从菜鸟到调用链专家---PPT
阅读量:5877 次
发布时间:2019-06-19

本文共 5481 字,大约阅读时间需要 18 分钟。

hot3.png

之前,在公司内部做了一个PPT分享,这个分享是我在认真研究了zipkin的源码后的一些体会。

截图如下:

 

 

json文件内容见:

[  {    "traceId": "daaed0921874ebc3",    "id": "daaed0921874ebc3",    "name": "gateway->service1",    "timestamp": 1476197067420000,    "duration": 4694000,    "annotations": [      {        "timestamp": 1476197067420000,        "value": "cs",        "endpoint": {          "serviceName": "gateway",          "ipv4": "1.2.3.110"        }      },      {        "timestamp": 1476197067527500,        "value": "sr",        "endpoint": {          "serviceName": "service1",          "ipv4": "1.2.3.111"        }      },      {        "timestamp": 1476197072006500,        "value": "ss",        "endpoint": {          "serviceName": "service1",          "ipv4": "1.2.3.111"        }      },      {        "timestamp": 1476197072114000,        "value": "cr",        "endpoint": {          "serviceName": "gateway",          "ipv4": "1.2.3.110"        }      }    ],    "binaryAnnotations": [      {        "key": "error",        "value": "错误发生",        "endpoint": {          "serviceName": "gateway",          "ipv4": "1.2.3.110"        }      },      {        "key": "http.status_code",        "value": "200",        "endpoint": {          "serviceName": "service1",          "ipv4": "1.2.3.111"        }      },      {        "key": "http.url",        "value": "/service1",        "endpoint": {          "serviceName": "service1",          "ipv4": "1.2.3.111"        }      },      {        "key": "http.url",        "value": "http://localhost:8080/service1",        "endpoint": {          "serviceName": "gateway",          "ipv4": "1.2.3.110"        }      },      {        "key": "任何你想上报的信息点",        "value": "java.lang.Exception\r\n\tat zipkin_public_training.Zipkin.execute(Zipkin.java:76)\r\n\tat zipkin_public_training.Zipkin.step9(Zipkin.java:64)\r\n\tat zipkin_public_training.Zipkin.step8(Zipkin.java:59)\r\n\tat zipkin_public_training.Zipkin.step7(Zipkin.java:55)\r\n\tat zipkin_public_training.Zipkin.step6(Zipkin.java:51)\r\n\tat zipkin_public_training.Zipkin.step5(Zipkin.java:47)\r\n\tat zipkin_public_training.Zipkin.step4(Zipkin.java:43)\r\n\tat zipkin_public_training.Zipkin.step3(Zipkin.java:39)\r\n\tat zipkin_public_training.Zipkin.step2(Zipkin.java:35)\r\n\tat zipkin_public_training.Zipkin.step1(Zipkin.java:31)\r\n\tat zipkin_public_training.Zipkin.step0(Zipkin.java:27)\r\n\tat zipkin_public_training.Zipkin.main(Zipkin.java:23)\r\n",        "endpoint": {          "serviceName": "gateway",          "ipv4": "1.2.3.110"        }      }    ]  },  {    "traceId": "daaed0921874ebc3",    "id": "411d4c32c102a974",    "name": "service1->service2",    "parentId": "daaed0921874ebc3",    "timestamp": 1476197069584500,    "duration": 1168000,    "annotations": [      {        "timestamp": 1476197069584500,        "value": "cs",        "endpoint": {          "serviceName": "service1",          "ipv4": "1.2.3.111"        }      },      {        "timestamp": 1476197069648500,        "value": "sr",        "endpoint": {          "serviceName": "service2",          "ipv4": "1.2.3.112"        }      },      {        "timestamp": 1476197070688500,        "value": "ss",        "endpoint": {          "serviceName": "service2",          "ipv4": "1.2.3.112"        }      },      {        "timestamp": 1476197070752500,        "value": "cr",        "endpoint": {          "serviceName": "service1",          "ipv4": "1.2.3.111"        }      }    ],    "binaryAnnotations": [      {        "key": "http.status_code",        "value": "200",        "endpoint": {          "serviceName": "service2",          "ipv4": "1.2.3.112"        }      },      {        "key": "http.url",        "value": "http://localhost:8089/service2",        "endpoint": {          "serviceName": "service1",          "ipv4": "1.2.3.111"        }      },      {        "key": "http.url",        "value": "/service2",        "endpoint": {          "serviceName": "service2",          "ipv4": "1.2.3.112"        }      }    ]  },  {    "traceId": "daaed0921874ebc3",    "id": "7c0d7d897a858217",    "name": "service1->service3",    "parentId": "daaed0921874ebc3",    "timestamp": 1476197070754500,    "duration": 1216000,    "annotations": [      {        "timestamp": 1476197070754500,        "value": "cs",        "endpoint": {          "serviceName": "service1",          "ipv4": "1.2.3.111"        }      },      {        "timestamp": 1476197070833000,        "value": "sr",        "endpoint": {          "serviceName": "service3",          "ipv4": "1.2.3.113"        }      },      {        "timestamp": 1476197071892000,        "value": "ss",        "endpoint": {          "serviceName": "service3",          "ipv4": "1.2.3.113"        }      },      {        "timestamp": 1476197071970500,        "value": "cr",        "endpoint": {          "serviceName": "service1",          "ipv4": "1.2.3.111"        }      }    ],    "binaryAnnotations": [      {        "key": "http.status_code",        "value": "200",        "endpoint": {          "serviceName": "service3",          "ipv4": "1.2.3.113"        }      },      {        "key": "http.url",        "value": "/service3",        "endpoint": {          "serviceName": "service3",          "ipv4": "1.2.3.113"        }      },      {        "key": "http.url",        "value": "http://localhost:8090/service3",        "endpoint": {          "serviceName": "service1",          "ipv4": "1.2.3.111"        }      }    ]  }]

 

转载于:https://my.oschina.net/qiangzigege/blog/881780

你可能感兴趣的文章
交换路由实现全网互通
查看>>
思科路由器密码破解
查看>>
Linux学习— /etc/fstab文件详解
查看>>
国家危废目录
查看>>
Redis二进制安装
查看>>
最好用的工兵铲—MaxCompute Studio,来了解下!
查看>>
MySQL数据库的备份与恢复
查看>>
CentOS 7 实现Nginx+Tomcat 负载均衡
查看>>
openstack 调试
查看>>
tcpdump抓包分析,快速完成接口调试
查看>>
语音转文字软件哪个好,这三款值得收藏
查看>>
我,而立之年,苦逼的一比!
查看>>
一分钟带你走进大数据行业!2019年进军大数据我们要做些什么?
查看>>
开源存储
查看>>
用shell脚本实现防DOS***-网络连接法
查看>>
2950交换机 简明配置维护手册
查看>>
我的友情链接
查看>>
PowerDesigner 15.2对Oracle进行反向工程
查看>>
myisam 和 innodb的区别
查看>>
自动切换的JS菜单
查看>>