1、Zipkin的由來sql
2、什麼是ZipKin數據庫
curl http://localhost:9411/api/v2/trace/2e0d4019eb7aae31
curl http://localhost:9411/api/v2/services
[ { "traceId": "string", // 追蹤鏈路ID "name": "string", // span名稱,通常爲方法名稱 "parentId": "string", // 調用者ID "id": "string", // spanID "kind": "CLIENT", // 替代zipkin v1的註解中的四個核心狀態,詳細介紹見下文 "timestamp": 0, // 時間戳,調用時間 "duration": 0, // 持續時間-調用的服務所消耗的時間 "debug": true, "shared": true, "localEndpoint": { // 本地網絡節點上下文 "serviceName": "string", "ipv4": "string", "ipv6": "string", "port": 0 }, "remoteEndpoint": { // 遠端網絡節點上下文 "serviceName": "string", "ipv4": "string", "ipv6": "string", "port": 0 }, "annotations": [ // value一般是縮寫代碼,對應的時間戳表示代碼標記事件的時間 { "timestamp": 0, "value": "string" } ], "tags": { // span的上下文信息,好比:http.method、http.path "additionalProp1": "string", "additionalProp2": "string", "additionalProp3": "string" } } ]
cqlsh 172.10.0.5
cqlsh> describe keyspaces;
cqlsh> use zipkin2;
cqlsh> describe tables;
#查詢前得對查詢列創建索引 cqlsh:zipkin2> create index on span(trace_id); cqlsh:zipkin2> select * from trace_by_service_span where trace_id='f81a638649326474';